class O365GroupsFilesControllerAccessCheck implements AccessInterface

Access check class for the files controller.

Properties

protected GroupsService $groupsService

The groups service.

protected Request|null $request

The current request.

Methods

__construct(RequestStack $requestStack, GroupsService $groupsService)

Constructor for the O365GroupsFilesControllerAccessCheck class.

AccessResultForbidden|AccessResultAllowed
access(AccountInterface $account)

Access check method.

Details

at line 42
__construct(RequestStack $requestStack, GroupsService $groupsService)

Constructor for the O365GroupsFilesControllerAccessCheck class.

Parameters

RequestStack $requestStack

The request stack.

GroupsService $groupsService

The groups service.

at line 56
AccessResultForbidden|AccessResultAllowed access(AccountInterface $account)

Access check method.

Parameters

AccountInterface $account

The current user account.

Return Value

AccessResultForbidden|AccessResultAllowed

Whether the user has access.