Modif permissions
This commit is contained in:
parent
c095921439
commit
f6ffc89ee2
@ -165,13 +165,17 @@ if ($cancel == $langs->trans("Cancel"))
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
if ($_GET["id"])
|
if ($_GET["id"])
|
||||||
{
|
{
|
||||||
$soc = new Societe($db);
|
$soc = new Societe($db);
|
||||||
$result = $soc->fetch($_GET["id"]);
|
$result = $soc->fetch($_GET["id"]);
|
||||||
|
|
||||||
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')
|
if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user