mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 02:36:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			414 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			414 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Grocy\Controllers\Users;
 | |
| 
 | |
| use Psr\Http\Message\ServerRequestInterface;
 | |
| use Slim\Exception\HttpForbiddenException;
 | |
| use Throwable;
 | |
| 
 | |
| class PermissionMissingException extends HttpForbiddenException
 | |
| {
 | |
| 	public function __construct(ServerRequestInterface $request, string $permission, ?Throwable $previous = null)
 | |
| 	{
 | |
| 		parent::__construct($request, 'Permission missing: ' . $permission, $previous);
 | |
| 	}
 | |
| }
 |