allow non-system group delete
This commit is contained in:
kulikov-a 2023-04-06 20:11:48 +03:00 committed by GitHub
parent 95f90f1088
commit 58a099e980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -436,7 +436,7 @@ $( document ).ready(function() {
class="btn btn-default btn-xs" data-toggle="tooltip" title="<?= html_safe(gettext('Edit')) ?>">
<span class="fa fa-pencil fa-fw"></span>
</a>
<?php if (isset($group['scope']) && $group['scope'] != 'system'): ?>
<?php if (!isset($group['scope']) || $group['scope'] != 'system'): ?>
<button type="button" class="btn btn-default btn-xs act-del-group"
data-groupname="<?=$group['name'];?>"
data-groupid="<?=$i?>" title="<?= html_safe(gettext('Delete')) ?>" data-toggle="tooltip">