diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-12-05 08:47:48 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-12-05 08:47:48 +0200 |
commit | 167197fcda390abd76dd2eaa4966b55940e1eb29 (patch) | |
tree | 85c0375ed55f4d280a9d761d3943171da9bc48c8 | |
parent | e3a40aca6f09ced580df26f438855107752650dd (diff) | |
download | wekan-167197fcda390abd76dd2eaa4966b55940e1eb29.tar.gz wekan-167197fcda390abd76dd2eaa4966b55940e1eb29.tar.bz2 wekan-167197fcda390abd76dd2eaa4966b55940e1eb29.zip |
- Partially #2045 revert, continue.
Thanks to xet7 !
-rw-r--r-- | .meteor/packages | 1 | ||||
-rw-r--r-- | .meteor/versions | 1 | ||||
-rw-r--r-- | server/publications/pub-users.js | 28 | ||||
-rw-r--r-- | server/publications/users.js | 1 |
4 files changed, 0 insertions, 31 deletions
diff --git a/.meteor/packages b/.meteor/packages index 698f1a73..3779a684 100644 --- a/.meteor/packages +++ b/.meteor/packages @@ -89,4 +89,3 @@ mquandalle:moment msavin:usercache wekan:wekan-ldap wekan:accounts-cas -msavin:sjobs
\ No newline at end of file diff --git a/.meteor/versions b/.meteor/versions index 5235e6a0..6415eb8b 100644 --- a/.meteor/versions +++ b/.meteor/versions @@ -117,7 +117,6 @@ mquandalle:jquery-ui-drag-drop-sort@0.2.0 mquandalle:moment@1.0.1 mquandalle:mousetrap-bindglobal@0.0.1 mquandalle:perfect-scrollbar@0.6.5_2 -msavin:sjobs@3.0.6 msavin:usercache@1.0.0 npm-bcrypt@0.9.3 npm-mongo@2.2.33 diff --git a/server/publications/pub-users.js b/server/publications/pub-users.js deleted file mode 100644 index f0c94153..00000000 --- a/server/publications/pub-users.js +++ /dev/null @@ -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, - }, - }); -}); diff --git a/server/publications/users.js b/server/publications/users.js index 136e1e08..f0c94153 100644 --- a/server/publications/users.js +++ b/server/publications/users.js @@ -22,7 +22,6 @@ Meteor.publish('user-authenticationMethod', function(match) { check(match, String); return Users.find({$or: [{_id: match}, {email: match}, {username: match}]}, { fields: { - '_id': 1, 'authenticationMethod': 1, }, }); |