You are here

public function MoxtraConnector::isManager in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 src/MoxtraConnector.php \Drupal\opigno_moxtra\MoxtraConnector::isManager()

Check if user is manager.

1 call to MoxtraConnector::isManager()
MoxtraConnector::prefix in src/MoxtraConnector.php
Build Moxtra users prefix.

File

src/MoxtraConnector.php, line 140

Class

MoxtraConnector

Namespace

Drupal\opigno_moxtra

Code

public function isManager($account) {
  $roles = $account
    ->getRoles();
  return array_search('collaborative_features', $roles);
}