Private GIT

Skip to content
Snippets Groups Projects
Commit fe2dbdab authored by Laurent Pinsivy's avatar Laurent Pinsivy Committed by GitHub
Browse files

#5189 - Allows to remove Resources access from Access Groups

"revert" commit 76e677d3 but specify table to delete and add WHERE in SQL request.
parent cf424b86
No related branches found
No related tags found
No related merge requests found
......@@ -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"])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment