You are here

protected function AccessManager::hasPerm in Administer Users by Role 8.3

Checks access to a permission for a given role.

2 calls to AccessManager::hasPerm()
AccessManager::preAccess in src/Services/AccessManager.php
Initial access check for an operation to test if access might be granted for some roles.
AccessManager::roleAccess in src/Services/AccessManager.php
Checks access for a given role.

File

src/Services/AccessManager.php, line 203

Class

AccessManager
Access Manager.

Namespace

Drupal\administerusersbyrole\Services

Code

protected function hasPerm($operation, AccountInterface $account, $rid = NULL) {
  return $account
    ->hasPermission($this
    ->buildPermString($operation, $rid));
}