diff --git a/src/larke/admin/Repository/AuthGroup.php b/src/larke/admin/Repository/AuthGroup.php index 322bf7e..c6d7977 100644 --- a/src/larke/admin/Repository/AuthGroup.php +++ b/src/larke/admin/Repository/AuthGroup.php @@ -23,6 +23,7 @@ class AuthGroup public static function getAllGroup() { $data = AuthGroupModel::query() + ->where('status', 1) ->orderBy('listorder', 'ASC') ->orderBy('create_time', 'ASC') ->get() @@ -46,7 +47,9 @@ public static function getChildren($groupid = null) return $list; } else { - $wheres = []; + $wheres = [ + ['status', 1], + ]; if (! empty($groupid)) { $wheres[] = ['parentid', $groupid]; }