Fix: Bad function
This commit is contained in:
parent
0fc6e72dc8
commit
e463a74c3e
@ -49,7 +49,7 @@ if ($user->societe_id) $socid=$user->societe_id;
|
||||
$result = restrictedArea($user, 'societe', $socid,'');
|
||||
|
||||
$canedit=1;
|
||||
if (! $user->rights->agenda->myactions->read) access_forbidden();
|
||||
if (! $user->rights->agenda->myactions->read) accessforbidden();
|
||||
if (! $user->rights->agenda->allactions->read) $canedit=0;
|
||||
if (! $user->rights->agenda->allactions->read || $_GET["filter"]=='mine')
|
||||
{
|
||||
|
||||
@ -50,7 +50,7 @@ if ($user->societe_id) $socid=$user->societe_id;
|
||||
$result = restrictedArea($user, 'societe', $socid,'');
|
||||
|
||||
$canedit=1;
|
||||
if (! $user->rights->agenda->myactions->read) access_forbidden();
|
||||
if (! $user->rights->agenda->myactions->read) accessforbidden();
|
||||
if (! $user->rights->agenda->allactions->read) $canedit=0;
|
||||
if (! $user->rights->agenda->allactions->read || $_GET["filter"]=='mine')
|
||||
{
|
||||
|
||||
@ -35,7 +35,7 @@ $form = new Form($db);
|
||||
|
||||
$module=isset($_GET["module"])?$_GET["module"]:$_POST["module"];
|
||||
|
||||
if (! isset($_GET["id"])) access_forbidden();
|
||||
if (! isset($_GET["id"])) accessforbidden();
|
||||
|
||||
|
||||
// Defini si peux modifier utilisateurs et permisssions
|
||||
|
||||
Loading…
Reference in New Issue
Block a user