mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Add comment
This commit is contained in:
parent
8daa5b4848
commit
b9be17360f
1 changed files with 6 additions and 0 deletions
|
@ -535,6 +535,12 @@ if (Meteor.isServer) {
|
|||
Users.after.insert((userId, doc) => {
|
||||
|
||||
if (doc.createdThroughApi) {
|
||||
// The admin user should be able to create a user despite disabling registration because
|
||||
// it is two different things (registration and creation).
|
||||
// So, when a new user is created via the api (only admin user can do that) one must avoid
|
||||
// the disableRegistration check.
|
||||
// Issue : https://github.com/wekan/wekan/issues/1232
|
||||
// PR : https://github.com/wekan/wekan/pull/1251
|
||||
Users.update(doc._id, { $set: { createdThroughApi: '' } });
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue