Skip to content
Snippets Groups Projects
Commit 5bc3107c authored by Charles Benke's avatar Charles Benke Committed by GitHub
Browse files

Update note.php

parent 35107f1d
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,7 @@ $langs->load("users"); ...@@ -37,6 +37,7 @@ $langs->load("users");
$object = new User($db); $object = new User($db);
$object->fetch($id); $object->fetch($id);
$object->getrights();
// If user is not user read and no permission to read other users, we stop // 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(); 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.
Please register or to comment