Skip to content

Commit

Permalink
Merge pull request #6133 from defrance/patch-58
Browse files Browse the repository at this point in the history
Bad number rights on User badge tabs
  • Loading branch information
eldy committed Dec 11, 2016
2 parents e7bc4bc + f2eb73a commit aa3bfb0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/user/document.php
Expand Up @@ -87,7 +87,7 @@
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 ;
Expand Down
1 change: 1 addition & 0 deletions htdocs/user/info.php
Expand Up @@ -35,6 +35,7 @@
if ($id > 0 || ! empty($ref))
{
$result = $object->fetch($id, $ref);
$object->getrights();
}

// Security check
Expand Down
1 change: 1 addition & 0 deletions htdocs/user/note.php
Expand Up @@ -37,6 +37,7 @@

$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();
Expand Down

0 comments on commit aa3bfb0

Please sign in to comment.