Parcourir la source

Add isAdmin to user Schema

Julen Landa Alustiza il y a 8 ans
Parent
commit
1218e114be
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      models/users.js

+ 4 - 0
models/users.js

@@ -104,6 +104,10 @@ Users.attachSchema(new SimpleSchema({
     type: Date,
     type: Date,
     optional: true,
     optional: true,
   },
   },
+  isAdmin: {
+    type: Boolean,
+    optional: true
+  }
 }));
 }));
 
 
 // Search a user in the complete server database by its name or username. This
 // Search a user in the complete server database by its name or username. This