You are here

private function Trigger::isValidUser in Build Hooks 8.2

Same name and namespace in other branches
  1. 8 src/Trigger.php \Drupal\build_hooks\Trigger::isValidUser()
  2. 3.x src/Trigger.php \Drupal\build_hooks\Trigger::isValidUser()

Checks if the user has the permission to trigger deployments.

Return value

bool Boolean value.

1 call to Trigger::isValidUser()
Trigger::showMenu in src/Trigger.php
Checks if we should show the environments in the upper menu.

File

src/Trigger.php, line 183

Class

Trigger
Class Trigger.

Namespace

Drupal\build_hooks

Code

private function isValidUser() {
  return $this->currentUser
    ->hasPermission('trigger deployments');
}