Fixed little permission issue...

This commit is contained in:
Pierre 2017-12-19 19:38:05 +01:00
parent 88e9a6fa58
commit 828050e471

View File

@ -388,6 +388,10 @@ class User{
*/ */
public function userAllowed(int $userID, int $targetUser) : bool { public function userAllowed(int $userID, int $targetUser) : bool {
//Check if the requested user is the current user
if($userID == $targetUser)
return true; //A user can access to its own page !
//Get the visibility level of the page //Get the visibility level of the page
$visibility = $this->getVisibilty($targetUser); $visibility = $this->getVisibilty($targetUser);