Add admin setting to prevent users to self deleting their account

This commit is contained in:
guillaume 2019-07-30 11:57:21 +02:00
parent 84ba42f42e
commit 98e3b0ce77
5 changed files with 31 additions and 2 deletions

View file

@ -35,6 +35,9 @@ Template.editProfilePopup.helpers({
allowUserNameChange() {
return AccountSettings.findOne('accounts-allowUserNameChange').booleanValue;
},
allowUserDelete() {
return AccountSettings.findOne('accounts-allowUserDelete').booleanValue;
},
});
Template.editProfilePopup.events({