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

Public Member Functions

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

Private Attributes

 $authentication
 

Detailed Description

Middleware to check the user is in the for logic group

Definition at line 14 of file CheckActivityFor.php.

Constructor & Destructor Documentation

◆ __construct()

BristolSU\Support\Authorization\Middleware\CheckActivityFor::__construct ( Authentication  $authentication)

Initialise the middleware

Parameters
Authentication$authenticationAuthentication contract to resolve the user information

Definition at line 28 of file CheckActivityFor.php.

References BristolSU\Support\Authorization\Middleware\CheckActivityFor\$authentication.

Member Function Documentation

◆ handle()

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

Check if the user is in the logic group forLogic

Parameters
Request$request
Closure$next
Returns
mixed
Exceptions
ActivityRequiresParticipant

Definition at line 41 of file CheckActivityFor.php.

References BristolSU\Support\Authorization\Exception\ActivityRequiresParticipant\createWithActivity().

Member Data Documentation

◆ $authentication

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

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