2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2020-02-12 17:28:18 +01:00
parent cc6313cdf3
commit e74df397eb
2 changed files with 44 additions and 16 deletions

View File

@@ -311,6 +311,9 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
{
foreach ($feature2 as $subfeature)
{
if ($subfeature == 'user' && $user->id == $objectid && $user->rights->user->self->creer) continue; // User can edit its own card
if ($subfeature == 'user' && $user->id == $objectid && $user->rights->user->self->password) continue; // User can edit its own password
if (empty($user->rights->$feature->$subfeature->creer)
&& empty($user->rights->$feature->$subfeature->write)
&& empty($user->rights->$feature->$subfeature->create)) {