Пример #1
0
 /**
  * Function to get the list of all existing roles
  *
  * @return roles list
  */
 public function getAllRoles(){
     try {
         return $this->userStoreManager->getRoleNames();
     } catch (Exception $ex) {
         throw new Exception("Unable to get all roles", 0, $ex);
     }
 }
Пример #2
0
 /**
  * Function to get the list of all existing roles
  *
  * @return roles list
  */
 public function getAllRoles()
 {
     try {
         $roles = $this->userStoreManager->getRoleNames();
         return array_filter($roles, "Wsis::nonInternalRoles");
         var_dump($roles);
         exit;
     } catch (Exception $ex) {
         throw new Exception("Unable to get all roles", 0, $ex);
     }
 }