This commit is contained in:
Laurent Destailleur 2019-11-22 15:21:21 +01:00
parent 31956d8912
commit 14450d8b79

View File

@ -71,24 +71,19 @@ $parameters = array();
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
if (empty($reshook))
{
if ($action == 'addrights' && $caneditperms)
{
if (empty($reshook)) {
if ($action == 'addrights' && $caneditperms) {
$editgroup = new Usergroup($db);
$result = $editgroup->fetch($id);
if ($result > 0)
{
if ($result > 0) {
$editgroup->addrights($rights, $module, '', $entity);
}
}
if ($action == 'delrights' && $caneditperms)
{
if ($action == 'delrights' && $caneditperms) {
$editgroup = new Usergroup($db);
$result = $editgroup->fetch($id);
if ($result > 0)
{
if ($result > 0) {
$editgroup->delrights($rights, $module, '', $entity);
}
}