mirror of
https://github.com/grocy/grocy.git
synced 2025-09-21 19:56:59 +00:00
15 lines
428 B
PHP
15 lines
428 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);
|
||
|
}
|
||
|
}
|