DemandGlobalAdmin
in package
implements
MiddlewareInterface
DemandGlobalAdmin middleware Returns 403 response if authenticated user is not global admin
Reads attribute:
- HORDE_GLOBAL_ADMIN true if the authenticated user is a global admin
Tags
Table of Contents
Interfaces
- MiddlewareInterface
Properties
- $responseFactory : ResponseFactoryInterface
Methods
- __construct() : mixed
- process() : ResponseInterface
Properties
$responseFactory
private
ResponseFactoryInterface
$responseFactory
Methods
__construct()
public
__construct(ResponseFactoryInterface $responseFactory) : mixed
Parameters
- $responseFactory : ResponseFactoryInterface
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface