Refined permissions by existing feature structure (closes #971, references #960)

This commit is contained in:
Bernd Bestel
2020-08-29 18:31:28 +02:00
parent a8395cb748
commit 86300b7025
21 changed files with 322 additions and 223 deletions

View File

@@ -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);
}