You are here

public function MainDeprecatedController::userIsAnonymous in Bakery Single Sign-On System 8.2

User is anonymous or not .

File

src/Controller/MainDeprecatedController.php, line 248

Class

MainDeprecatedController

Namespace

Drupal\bakery\Controller

Code

public function userIsAnonymous() {
  if ($this
    ->currentUser()
    ->isAnonymous()) {
    return AccessResult::allowed();
  }
  else {
    return AccessResult::forbidden();
  }
}