You are here

public function UserHelpTabAccess::access in Lightweight Directory Access Protocol (LDAP) 8.4

Same name and namespace in other branches
  1. 8.3 ldap_authentication/src/Access/UserHelpTabAccess.php \Drupal\ldap_authentication\Access\UserHelpTabAccess::access()

File

ldap_authentication/src/Access/UserHelpTabAccess.php, line 83

Class

UserHelpTabAccess
Checks whether the use is allowed to see the help tab.

Namespace

Drupal\ldap_authentication\Access

Code

public function access(AccountInterface $account) {
  if ($this
    ->accessLdapHelpTab()) {
    return AccessResultAllowed::allowed();
  }
  return AccessResultAllowed::forbidden();
}