summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsoohwa <none@none.none>2017-10-06 23:08:22 +0900
committersoohwa <none@none.none>2017-10-06 23:08:22 +0900
commit8daa5b4848cd929d298ca2dfb2170a6b8dab60df (patch)
tree7b18be792a65da7255483d4de95f206c5005d6e1
parent273784b9e46a83e02d65cd0281c93d5d0b3bb6cc (diff)
downloadwekan-8daa5b4848cd929d298ca2dfb2170a6b8dab60df.tar.gz
wekan-8daa5b4848cd929d298ca2dfb2170a6b8dab60df.tar.bz2
wekan-8daa5b4848cd929d298ca2dfb2170a6b8dab60df.zip
Change fromAdmin into createdThroughApi
-rw-r--r--models/users.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/users.js b/models/users.js
index adef3ad5..459462e3 100644
--- a/models/users.js
+++ b/models/users.js
@@ -108,7 +108,7 @@ Users.attachSchema(new SimpleSchema({
type: Boolean,
optional: true,
},
- fromAdmin: {
+ createdThroughApi: {
type: Boolean,
optional: true,
},
@@ -441,7 +441,7 @@ if (Meteor.isServer) {
}
if (options.from === 'admin') {
- user.fromAdmin = true;
+ user.createdThroughApi = true;
return user;
}
@@ -534,8 +534,8 @@ if (Meteor.isServer) {
Users.after.insert((userId, doc) => {
- if (doc.fromAdmin) {
- Users.update(doc._id, { $set: { fromAdmin: '' } });
+ if (doc.createdThroughApi) {
+ Users.update(doc._id, { $set: { createdThroughApi: '' } });
return;
}