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 0fdf21a8..c6c0f857 100644
--- a/models/users.js
+++ b/models/users.js
@@ -559,7 +559,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;
}
@@ -675,7 +675,7 @@ if (Meteor.isServer) {
CollectionHooks.getUserId = () => {
return fakeUserId.get() || getUserId();
};
-
+ /*
if (!isSandstorm) {
Users.after.insert((userId, doc) => {
const fakeUser = {
@@ -704,6 +704,7 @@ if (Meteor.isServer) {
});
});
}
+ */
Users.after.insert((userId, doc) => {