Fix undefined method

This commit is contained in:
Laurent Destailleur 2021-08-08 12:09:18 +02:00
parent 3f0a5cc689
commit c377e5ea3d

View File

@ -100,8 +100,8 @@ if (empty($reshook)) {
dol_print_error($db); dol_print_error($db);
} }
$object->clearrights(); $user->clearrights();
$object->getrights(); $user->getrights();
} }
if ($action == 'delrights' && $caneditperms) { if ($action == 'delrights' && $caneditperms) {
@ -116,8 +116,8 @@ if (empty($reshook)) {
dol_print_error($db); dol_print_error($db);
} }
$object->clearrights(); $user->clearrights();
$object->getrights(); $user->getrights();
} }
} }