浏览代码

Add isAdmin to user Schema

Julen Landa Alustiza 8 年之前
父节点
当前提交
1218e114be
共有 1 个文件被更改,包括 4 次插入0 次删除
  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