summaryrefslogtreecommitdiffstats
path: root/server/publications
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-12-05 08:47:48 +0200
committerLauri Ojansivu <x@xet7.org>2018-12-05 08:47:48 +0200
commit167197fcda390abd76dd2eaa4966b55940e1eb29 (patch)
tree85c0375ed55f4d280a9d761d3943171da9bc48c8 /server/publications
parente3a40aca6f09ced580df26f438855107752650dd (diff)
downloadwekan-167197fcda390abd76dd2eaa4966b55940e1eb29.tar.gz
wekan-167197fcda390abd76dd2eaa4966b55940e1eb29.tar.bz2
wekan-167197fcda390abd76dd2eaa4966b55940e1eb29.zip
- Partially #2045 revert, continue.
Thanks to xet7 !
Diffstat (limited to 'server/publications')
-rw-r--r--server/publications/pub-users.js28
-rw-r--r--server/publications/users.js1
2 files changed, 0 insertions, 29 deletions
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,
},
});