mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Fixed little permission issue...
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user