mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-25 13:08:58 +00:00
Fixed little permission issue...
This commit is contained in:
parent
88e9a6fa58
commit
828050e471
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user