public function ViewJobAccess::access in Translation Management Tool 8
Determine if the current user has access or not.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user who wants to access this view.
Return value
bool Returns whether the user has access to the view.
Overrides AccessPluginBase::access
File
- src/Plugin/ views/ access/ ViewJobAccess.php, line 36 
Class
- ViewJobAccess
- Access plugin that checks multiple permissions.
Namespace
Drupal\tmgmt\Plugin\views\accessCode
public function access(AccountInterface $account) {
  foreach ($this->permissions as $permission) {
    if ($account
      ->hasPermission($permission)) {
      return TRUE;
    }
  }
}