Permalink
Browse files

Return $this->roles instead of $this->rights["ajxp.roles"]

  • Loading branch information...
1 parent 96183ac commit 26edc1b5ddd9cf202de0f6c0e1c17d55e8246072 @cdujeu cdujeu committed Oct 6, 2016
Showing with 4 additions and 4 deletions.
  1. +4 −4 core/src/plugins/core.conf/AbstractUser.php
@@ -207,13 +207,13 @@ public function updateRolesOrder($orderedRolesIds){
}
/**
- * @return array
+ * @return AJXP_Role[]
*/
public function getRoles()
{
- if (isSet($this->rights["ajxp.roles"])) {
- uksort($this->rights["ajxp.roles"], array($this, "orderRoles"));
- return $this->rights["ajxp.roles"];
+ if (isSet($this->roles)) {
+ uksort($this->roles, array($this, "orderRoles"));
+ return $this->roles;
} else {
return array();
}

0 comments on commit 26edc1b

Please sign in to comment.