mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
parent
e3a40aca6f
commit
167197fcda
4 changed files with 0 additions and 31 deletions
|
@ -89,4 +89,3 @@ mquandalle:moment
|
||||||
msavin:usercache
|
msavin:usercache
|
||||||
wekan:wekan-ldap
|
wekan:wekan-ldap
|
||||||
wekan:accounts-cas
|
wekan:accounts-cas
|
||||||
msavin:sjobs
|
|
|
@ -117,7 +117,6 @@ mquandalle:jquery-ui-drag-drop-sort@0.2.0
|
||||||
mquandalle:moment@1.0.1
|
mquandalle:moment@1.0.1
|
||||||
mquandalle:mousetrap-bindglobal@0.0.1
|
mquandalle:mousetrap-bindglobal@0.0.1
|
||||||
mquandalle:perfect-scrollbar@0.6.5_2
|
mquandalle:perfect-scrollbar@0.6.5_2
|
||||||
msavin:sjobs@3.0.6
|
|
||||||
msavin:usercache@1.0.0
|
msavin:usercache@1.0.0
|
||||||
npm-bcrypt@0.9.3
|
npm-bcrypt@0.9.3
|
||||||
npm-mongo@2.2.33
|
npm-mongo@2.2.33
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
Meteor.publish('user-miniprofile', function(userId) {
|
|
||||||
check(userId, String);
|
|
||||||
|
|
||||||
return Users.find(userId, {
|
|
||||||
fields: {
|
|
||||||
'username': 1,
|
|
||||||
'profile.fullname': 1,
|
|
||||||
'profile.avatarUrl': 1,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
Meteor.publish('user-admin', function() {
|
|
||||||
return Meteor.users.find(this.userId, {
|
|
||||||
fields: {
|
|
||||||
isAdmin: 1,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
Meteor.publish('user-authenticationMethod', function(match) {
|
|
||||||
check(match, String);
|
|
||||||
return Users.find({$or: [{_id: match}, {email: match}, {username: match}]}, {
|
|
||||||
fields: {
|
|
||||||
'authenticationMethod': 1,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -22,7 +22,6 @@ Meteor.publish('user-authenticationMethod', function(match) {
|
||||||
check(match, String);
|
check(match, String);
|
||||||
return Users.find({$or: [{_id: match}, {email: match}, {username: match}]}, {
|
return Users.find({$or: [{_id: match}, {email: match}, {username: match}]}, {
|
||||||
fields: {
|
fields: {
|
||||||
'_id': 1,
|
|
||||||
'authenticationMethod': 1,
|
'authenticationMethod': 1,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue