From 828050e471c464db36b20668745ef8c4d65bd94b Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 19 Dec 2017 19:38:05 +0100 Subject: [PATCH] Fixed little permission issue... --- classes/components/user.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/components/user.php b/classes/components/user.php index 414d1c9..81a2c75 100644 --- a/classes/components/user.php +++ b/classes/components/user.php @@ -388,6 +388,10 @@ class User{ */ 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 $visibility = $this->getVisibilty($targetUser);