You are here

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

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

File

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

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();
  }
  else {
    return AccessResultAllowed::forbidden();
  }
}