Permalink
Browse files

Fix group sorting in orderRoles. (=> DEVELOP). Fix #1126

  • Loading branch information...
1 parent aba61b7 commit 5b26fff17c91a6d4eea126f0de227e9d597c5fae @cdujeu cdujeu committed Jun 29, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/plugins/core.conf/AbstractUser.php
@@ -702,7 +702,7 @@ protected function orderRoles($r1, $r2)
if(strpos($r2, "AJXP_USR_") === 0) return -1;
// Two groups, sort by string, will magically keep group hierarchy
- if(strpos($r1, "AJXP_GRP_") === 0 && strpos($r2, "AJXP_GRP_") === 000) {
+ if(strpos($r1, "AJXP_GRP_") === false && strpos($r2, "AJXP_GRP_") === false) {
return strcmp($r1,$r2);
}

0 comments on commit 5b26fff

Please sign in to comment.