summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
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) => {