Bristol SU Support Package
Public Member Functions | Private Attributes | List of all members
BristolSU\Support\Authorization\Middleware\CheckAdminIsAtLeastUser Class Reference

Public Member Functions

 __construct (Authentication $authentication, UserAuthentication $userAuthentication)
 
 handle (Request $request, \Closure $next)
 

Private Attributes

 $authentication
 
 $userAuthentication
 

Detailed Description

Definition at line 9 of file CheckAdminIsAtLeastUser.php.

Constructor & Destructor Documentation

◆ __construct()

BristolSU\Support\Authorization\Middleware\CheckAdminIsAtLeastUser::__construct ( Authentication  $authentication,
UserAuthentication  $userAuthentication 
)

Member Function Documentation

◆ handle()

BristolSU\Support\Authorization\Middleware\CheckAdminIsAtLeastUser::handle ( Request  $request,
\Closure  $next 
)

Set the user if it is not already set

Parameters
Request$request
\Closure$next
Returns
mixed

Definition at line 34 of file CheckAdminIsAtLeastUser.php.

Member Data Documentation

◆ $authentication

BristolSU\Support\Authorization\Middleware\CheckAdminIsAtLeastUser::$authentication
private

◆ $userAuthentication

BristolSU\Support\Authorization\Middleware\CheckAdminIsAtLeastUser::$userAuthentication
private

The documentation for this class was generated from the following file: