Modif permissions
This commit is contained in:
parent
6e0a4e2820
commit
832091fc8d
@ -29,11 +29,18 @@ llxHeader("","T
|
||||
|
||||
if ($_GET["id"])
|
||||
{
|
||||
$client_comm = new Societe($db);
|
||||
$contrat = new TelephonieContrat($db);
|
||||
|
||||
$result = $contrat->fetch($_GET["id"]);
|
||||
$client_comm->fetch($contrat->client_comm_id, $user);
|
||||
|
||||
if ( $result == 1 )
|
||||
if (!$client_comm->perm_read)
|
||||
{
|
||||
print "Lecture non authorisée";
|
||||
}
|
||||
|
||||
if ( $result && $client_comm->perm_read)
|
||||
{
|
||||
if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit')
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user