Fix: Permission "read" of ecm document was not used and replaced by "download". As it is same permission, we moved back to "read" to be uniform with other modules: "read" must be first permission with number XXX1.

This commit is contained in:
Laurent Destailleur
2011-05-25 10:35:57 +00:00
parent 0f07175397
commit 7a616a8592
8 changed files with 15 additions and 26 deletions

View File

@@ -2008,10 +2008,6 @@ function restrictedArea($user, $features='societe', $objectid=0, $dbtablename=''
{
if (! $user->rights->banque->cheque) $readok=0;
}
else if ($feature == 'ecm')
{
if (! $user->rights->ecm->download) $readok=0;
}
else if ($feature == 'projet')
{
if (! $user->rights->projet->lire && ! $user->rights->projet->all->lire) $readok=0;