Bristol SU Support Package
|
Public Member Functions | |
__construct (Authentication $authentication) | |
handle (Request $request, \Closure $next) | |
Private Member Functions | |
checkUserIsInRole (User $user, Role $role) | |
checkGroupBelongsToRole (Group $group, Role $role) | |
checkUserHasMembershipToGroup (User $user, Group $group) | |
checkGroupIsLoggedIn () | |
Private Attributes | |
$authentication | |
Definition at line 12 of file CheckAdditionalCredentialsOwnedByUser.php.
BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser::__construct | ( | Authentication | $authentication | ) |
Definition at line 20 of file CheckAdditionalCredentialsOwnedByUser.php.
References BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser\$authentication.
|
private |
Check that the role belongs to the given group
Group | $group | |
Role | $role |
IncorrectLogin | If the group does not belong to the role |
Definition at line 71 of file CheckAdditionalCredentialsOwnedByUser.php.
Referenced by BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser\handle().
|
private |
Check a group is currently logged in
IncorrectLogin | If a group is not logged in |
Definition at line 99 of file CheckAdditionalCredentialsOwnedByUser.php.
Referenced by BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser\handle().
|
private |
Check that the user has a membership to the given group
User | $user | |
Group | $group |
IncorrectLogin | If the user does not have a membership to the group |
Definition at line 85 of file CheckAdditionalCredentialsOwnedByUser.php.
Referenced by BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser\handle().
|
private |
Check that the user is in the given role
User | $user | |
Role | $role |
IncorrectLogin | If the user does not belong to the role |
Definition at line 55 of file CheckAdditionalCredentialsOwnedByUser.php.
Referenced by BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser\handle().
BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser::handle | ( | Request | $request, |
\Closure | $next | ||
) |
Check the user has access to any logged in group/role
Request | $request | |
\Closure | $next |
IncorrectLogin | If there is an issue with the logged in group/role |
Definition at line 33 of file CheckAdditionalCredentialsOwnedByUser.php.
References BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser\checkGroupBelongsToRole(), BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser\checkGroupIsLoggedIn(), BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser\checkUserHasMembershipToGroup(), and BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser\checkUserIsInRole().
|
private |
Definition at line 18 of file CheckAdditionalCredentialsOwnedByUser.php.
Referenced by BristolSU\Support\Authorization\Middleware\CheckAdditionalCredentialsOwnedByUser\__construct().