mirror of
				https://git.tt-rss.org/fox/tt-rss.git
				synced 2025-10-26 02:11:16 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			297 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			297 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| class Handler_Administrative extends Handler_Protected {
 | |
|    function before(string $method): bool {
 | |
|       if (parent::before($method)) {
 | |
|          if (($_SESSION["access_level"] ?? 0) >= UserHelper::ACCESS_LEVEL_ADMIN) {
 | |
|             return true;
 | |
|          }
 | |
|       }
 | |
|       return false;
 | |
|    }
 | |
| }
 |