Modification des permissions
This commit is contained in:
parent
03cbaf4413
commit
a09228e7d3
@ -38,9 +38,14 @@ if ($cancel == $langs->trans("Cancel"))
|
||||
if ($_GET["id"])
|
||||
{
|
||||
$soc = new Societe($db);
|
||||
$result = $soc->fetch($_GET["id"]);
|
||||
$result = $soc->fetch($_GET["id"], $user);
|
||||
|
||||
if ( $result == 1 )
|
||||
if (!$soc->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
}
|
||||
|
||||
if ( $result == 1 && $soc->perm_read)
|
||||
{
|
||||
if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit')
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user