Merge pull request #14898 from bb2a/Droit-for-Download-vcad-user

Restric for download vcar user
This commit is contained in:
Laurent Destailleur 2020-10-02 15:43:07 +02:00 committed by GitHub
commit b90f912099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,8 +40,6 @@ if ($user->socid > 0) $socid = $user->socid;
$feature2 = 'user';
$result = restrictedArea($user, 'user', $id, 'user', $feature2);
if ($user->id <> $id && !$canreaduser) accessforbidden();
$result = $user2->fetch($id);
if ($result <= 0)