summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-02-27 16:26:48 +0200
committerLauri Ojansivu <x@xet7.org>2019-02-27 16:26:48 +0200
commit4a77bc930fdf8e9d951a8d1aa8395f79dc014655 (patch)
treeb4219c1ac395ea9838ca18d39f34d279639a14d4 /models/users.js
parent8d512451610677ab668de596f4b13d0473b47cdc (diff)
parent29c3080eb6b925e0fe8308b721dca25cbeb34e73 (diff)
downloadwekan-4a77bc930fdf8e9d951a8d1aa8395f79dc014655.tar.gz
wekan-4a77bc930fdf8e9d951a8d1aa8395f79dc014655.tar.bz2
wekan-4a77bc930fdf8e9d951a8d1aa8395f79dc014655.zip
Merge branch 'devel' into edge
Diffstat (limited to 'models/users.js')
-rw-r--r--models/users.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/models/users.js b/models/users.js
index 9bc4f175..7152d133 100644
--- a/models/users.js
+++ b/models/users.js
@@ -595,7 +595,7 @@ if (Meteor.isServer) {
});
Accounts.onCreateUser((options, user) => {
const userCount = Users.find().count();
- if (!isSandstorm && userCount === 0) {
+ if (userCount === 0) {
user.isAdmin = true;
return user;
}
@@ -711,7 +711,7 @@ if (Meteor.isServer) {
CollectionHooks.getUserId = () => {
return fakeUserId.get() || getUserId();
};
-
+ /*
if (!isSandstorm) {
Users.after.insert((userId, doc) => {
const fakeUser = {
@@ -786,6 +786,7 @@ if (Meteor.isServer) {
});
});
}
+ */
Users.after.insert((userId, doc) => {