Explorar el Código

First user is admin only if not running in sandstorm

Julen Landa Alustiza hace 8 años
padre
commit
28a1dd677c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      models/users.js

+ 1 - 1
models/users.js

@@ -409,7 +409,7 @@ if (Meteor.isServer) {
   });
   Accounts.onCreateUser((options, user) => {
     const userCount = Users.find().count();
-    if (userCount === 0){
+    if (!isSandstorm && userCount === 0 ){
       user.isAdmin = true;
       return user;
     }