CheckPermissions
Table of Contents
- handle() : mixed
- Handle an incoming request.
- hasRightPermissions() : bool
- Check if the user has the right permissions.
Methods
handle()
Handle an incoming request.
public
handle(Request $request, Closure $next, mixed $module, mixed $permission) : mixed
Parameters
- $request : Request
- $next : Closure
- $module : mixed
- $permission : mixed
Return values
mixed —hasRightPermissions()
Check if the user has the right permissions.
private
hasRightPermissions(User $user, mixed $module_id, mixed $user_permission) : bool
Parameters
- $user : User
- $module_id : mixed
- $user_permission : mixed