2
0
forked from Wavyzz/dolibarr

Fix warnings

This commit is contained in:
Laurent Destailleur
2023-08-04 03:56:02 +02:00
parent 1d41cda476
commit c882870085
7 changed files with 18 additions and 7 deletions

View File

@@ -68,7 +68,7 @@ if (!$canreadperms) {
accessforbidden();
}
$object = new Usergroup($db);
$object = new UserGroup($db);
$object->fetch($id);
$object->getrights();
@@ -90,7 +90,7 @@ if ($reshook < 0) {
if (empty($reshook)) {
if ($action == 'addrights' && $caneditperms) {
$editgroup = new Usergroup($db);
$editgroup = new UserGroup($db);
$result = $editgroup->fetch($object->id);
if ($result > 0) {
$result = $editgroup->addrights($rights, $module, '', $entity);
@@ -106,7 +106,7 @@ if (empty($reshook)) {
}
if ($action == 'delrights' && $caneditperms) {
$editgroup = new Usergroup($db);
$editgroup = new UserGroup($db);
$result = $editgroup->fetch($id);
if ($result > 0) {
$result = $editgroup->delrights($rights, $module, '', $entity);
@@ -475,7 +475,7 @@ if ($object->id > 0) {
$(".permtohide_"+moduletohide).hide();
$("#idforbreakperms_"+moduletohide).val("1");
}
// Now rebuild the value for cookie
var hideuserperm="";
$(".trforbreakperms").each(function(index) {