Skip to content
Snippets Groups Projects
Commit 6853ed0e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: permission for a user to view its own card using webservice

parent bd050566
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ function getUser($authentication,$id,$ref='',$ref_ext='')
{
$fuser->getrights();
if ($fuser->rights->user->user->lire)
if ($fuser->rights->user->user->lire || ($fuser->rights->user->self->creer && $fuser->id = $id))
{
$user=new User($db);
$result=$user->fetch($id,$ref,$ref_ext);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment