public function MoxtraConnector::isManager in Opigno Moxtra 3.x
Same name and namespace in other branches
- 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
Namespace
Drupal\opigno_moxtraCode
public function isManager($account) {
$roles = $account
->getRoles();
return array_search('collaborative_features', $roles);
}