diff --git a/www/include/options/accessLists/groupsACL/DB-Func.php b/www/include/options/accessLists/groupsACL/DB-Func.php index a1af9119a961241cce45d35a7918e01ad2a8f7fa..156933aa6456d57fad99b35fd18a5e0ef55b1e8a 100644 --- a/www/include/options/accessLists/groupsACL/DB-Func.php +++ b/www/include/options/accessLists/groupsACL/DB-Func.php @@ -383,10 +383,10 @@ function updateGroupResources($acl_group_id, $ret = array()) return; } - $query = 'DELETE ' - . 'FROM acl_res_group_relations ' - . 'JOIN acl_resources ar ON acl_res_group_relations.acl_res_id = ar.acl_res_id ' - . 'AND acl_res_group_relations.acl_group_id = ' . $acl_group_id . ' ' + $query = 'DELETE argr' + . 'FROM acl_res_group_relations argr' + . 'JOIN acl_resources ar ON argr.acl_res_id = ar.acl_res_id ' + . 'WHERE argr.acl_group_id = ' . $acl_group_id . ' ' . 'AND ar.locked = 0 '; $pearDB->query($query); if (isset($_POST["resourceAccess"])) {