You are here

public function WorkbenchAccessManagerInterface::userInAll in Workbench Access 8

Determines if a user is assigned to all sections.

This method checks the permissions and assignments for a user. Someone set as an admin or with access to the top-level sections is assumed to be able to access all sections. We use this logic in query filtering.

Parameters

\Drupal\workbench_access\Entity\AccessSchemeInterface $scheme: Access scheme.

\Drupal\Core\Session\AccountInterface $account: Account being checked.

Return value

bool TRUE if user is in all schemes.

1 method overrides WorkbenchAccessManagerInterface::userInAll()
WorkbenchAccessManager::userInAll in src/WorkbenchAccessManager.php
Determines if a user is assigned to all sections.

File

src/WorkbenchAccessManagerInterface.php, line 60

Class

WorkbenchAccessManagerInterface
Defines an interface handling Workbench Access configuration.

Namespace

Drupal\workbench_access

Code

public function userInAll(AccessSchemeInterface $scheme, AccountInterface $account = NULL);