mirror of
https://github.com/wekan/wekan.git
synced 2025-12-30 22:28:49 +01:00
7 lines
310 B
JavaScript
7 lines
310 B
JavaScript
// Publish only the current logged-in user's GreyIcons profile flag
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
Meteor.publish('userGreyIcons', function publishUserGreyIcons() {
|
|
if (!this.userId) return this.ready();
|
|
return Meteor.users.find({ _id: this.userId }, { fields: { 'profile.GreyIcons': 1 } });
|
|
});
|