Explorar o código

Add isAdmin to user Schema

Julen Landa Alustiza %!s(int64=8) %!d(string=hai) anos
pai
achega
1218e114be
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      models/users.js

+ 4 - 0
models/users.js

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