mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Clear "fromAdmin". Thx to nztqa.
This commit is contained in:
parent
42ca385a36
commit
273784b9e4
1 changed files with 3 additions and 1 deletions
|
|
@ -534,8 +534,10 @@ if (Meteor.isServer) {
|
|||
|
||||
Users.after.insert((userId, doc) => {
|
||||
|
||||
if (doc.fromAdmin)
|
||||
if (doc.fromAdmin) {
|
||||
Users.update(doc._id, { $set: { fromAdmin: '' } });
|
||||
return;
|
||||
}
|
||||
|
||||
//invite user to corresponding boards
|
||||
const disableRegistration = Settings.findOne().disableRegistration;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue