Modif permissions

This commit is contained in:
Rodolphe Quiedeville 2005-09-02 14:53:49 +00:00
parent c095921439
commit f6ffc89ee2

View File

@ -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 authorisée";
}
if ( $result == 1 && $soc->perm_read)
{
if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit')
{