xxxrrrdddd 3 anos atrás
pai
commit
84df4d2dc2
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      extend/fast/Auth.php

+ 1 - 0
extend/fast/Auth.php

@@ -159,6 +159,7 @@ class Auth
             ->field('aga.uid,aga.group_id,ag.id,ag.pid,ag.name,ag.rules')
             ->field('aga.uid,aga.group_id,ag.id,ag.pid,ag.name,ag.rules')
             ->where("aga.uid='{$uid}' and ag.status='normal'")
             ->where("aga.uid='{$uid}' and ag.status='normal'")
             ->select();
             ->select();
+        $user_groups=$user_groups->toArray();
         $groups[$uid] = $user_groups ?: [];
         $groups[$uid] = $user_groups ?: [];
         return $groups[$uid];
         return $groups[$uid];
     }
     }