summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorJulen Landa Alustiza <julen@zokormazo.info>2017-04-02 12:55:13 +0200
committerJulen Landa Alustiza <julen@zokormazo.info>2017-04-02 12:55:13 +0200
commit1218e114beb8cb4428c5bf43a76382981b89d09a (patch)
treec3fbe6fcdabfc32b0b4d78a5b404d971758e3b4a /models
parentc58cb9eddf26ec8f2927457a790cb09b172a6da0 (diff)
downloadwekan-1218e114beb8cb4428c5bf43a76382981b89d09a.tar.gz
wekan-1218e114beb8cb4428c5bf43a76382981b89d09a.tar.bz2
wekan-1218e114beb8cb4428c5bf43a76382981b89d09a.zip
Add isAdmin to user Schema
Diffstat (limited to 'models')
-rw-r--r--models/users.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/users.js b/models/users.js
index 7b484f92..b06a6460 100644
--- a/models/users.js
+++ b/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