mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Add admin setting to prevent users to self deleting their account
This commit is contained in:
parent
84ba42f42e
commit
98e3b0ce77
5 changed files with 31 additions and 2 deletions
|
|
@ -68,6 +68,15 @@ if (Meteor.isServer) {
|
|||
},
|
||||
},
|
||||
);
|
||||
AccountSettings.upsert(
|
||||
{ _id: 'accounts-allowUserDelete' },
|
||||
{
|
||||
$setOnInsert: {
|
||||
booleanValue: false,
|
||||
sort: 0,
|
||||
},
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue