Update note.php

This commit is contained in:
BENKE Charlie 2016-12-10 23:30:31 +01:00 committed by GitHub
parent 35107f1dbf
commit 5bc3107c5d

View File

@ -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();