Permalink
Browse files

Refix group sorting

  • Loading branch information...
1 parent fa11c6a commit 65cc9a2473a8e2b4b7ae4c2acae7a0e707b1967a @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_") === false && strpos($r2, "AJXP_GRP_") === false) {
+ if(strpos($r1, "AJXP_GRP_") === 0 && strpos($r2, "AJXP_GRP_") === 0) {
return strcmp($r1,$r2);
}

0 comments on commit 65cc9a2

Please sign in to comment.