mirror of
https://github.com/wekan/wekan.git
synced 2026-02-24 08:54:06 +01:00
Change fromAdmin into createdThroughApi
This commit is contained in:
parent
273784b9e4
commit
8daa5b4848
1 changed files with 4 additions and 4 deletions
|
|
@ -108,7 +108,7 @@ Users.attachSchema(new SimpleSchema({
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
optional: true,
|
optional: true,
|
||||||
},
|
},
|
||||||
fromAdmin: {
|
createdThroughApi: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
optional: true,
|
optional: true,
|
||||||
},
|
},
|
||||||
|
|
@ -441,7 +441,7 @@ if (Meteor.isServer) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.from === 'admin') {
|
if (options.from === 'admin') {
|
||||||
user.fromAdmin = true;
|
user.createdThroughApi = true;
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -534,8 +534,8 @@ if (Meteor.isServer) {
|
||||||
|
|
||||||
Users.after.insert((userId, doc) => {
|
Users.after.insert((userId, doc) => {
|
||||||
|
|
||||||
if (doc.fromAdmin) {
|
if (doc.createdThroughApi) {
|
||||||
Users.update(doc._id, { $set: { fromAdmin: '' } });
|
Users.update(doc._id, { $set: { createdThroughApi: '' } });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue