Skip to content
Snippets Groups Projects
Commit aa3bfb06 authored by Laurent Destailleur's avatar Laurent Destailleur Committed by GitHub
Browse files

Merge pull request #6133 from defrance/patch-58

Bad number rights on User badge tabs
parents e7bc4bc7 f2eb73a1
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ $object = new User($db);
if ($id > 0 || ! empty($ref))
{
$result = $object->fetch($id, $ref);
$object->getrights();
$entitytouseforuserdir = $object->entity;
if (empty($entitytouseforuserdir)) $entitytouseforuserdir=1;
$upload_dir = $conf->user->multidir_output[$entitytouseforuserdir] . "/" . $object->id ;
......
......@@ -35,6 +35,7 @@ $object = new User($db);
if ($id > 0 || ! empty($ref))
{
$result = $object->fetch($id, $ref);
$object->getrights();
}
// Security check
......
......@@ -37,6 +37,7 @@ $langs->load("users");
$object = new User($db);
$object->fetch($id);
$object->getrights();
// If user is not user read and no permission to read other users, we stop
if (($object->id != $user->id) && (! $user->rights->user->user->lire)) accessforbidden();
......
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