mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user