mirror of
https://github.com/grocy/grocy.git
synced 2025-08-28 17:10:11 +00:00
This commit is contained in:
@@ -33,7 +33,7 @@ $('#permission-save').click(
|
||||
if (Grocy.EditObjectId == Grocy.UserId) {
|
||||
$('input.permission-cb[name=ADMIN]').click(function () {
|
||||
if (!this.checked) {
|
||||
if (!confirm(__t('Are you sure you want to stop being an ADMIN?'))) {
|
||||
if (!confirm(__t('Are you sure you want to remove full permissions for yourself?'))) {
|
||||
this.checked = true;
|
||||
check_hierachy(this.checked, this.name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user