Skip to content
Snippets Groups Projects
Commit f6ffc89e authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Modif permissions

parent c0959214
No related branches found
No related tags found
No related merge requests found
......@@ -165,13 +165,17 @@ if ($cancel == $langs->trans("Cancel"))
*
*/
if ($_GET["id"])
{
$soc = new Societe($db);
$result = $soc->fetch($_GET["id"]);
if ( $result == 1 )
if (!$soc->perm_read)
{
print "Lecture non authorise";
}
if ( $result == 1 && $soc->perm_read)
{
if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit')
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment