From 32a1f8b13e619ebb0ff301076d855ab124d1c748 Mon Sep 17 00:00:00 2001 From: zhao Date: Sun, 3 May 2020 15:06:25 +0800 Subject: [PATCH] admin select --- app/admin/controller/AuthAccess.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/controller/AuthAccess.php b/app/admin/controller/AuthAccess.php index 194ea9c..e76a21d 100644 --- a/app/admin/controller/AuthAccess.php +++ b/app/admin/controller/AuthAccess.php @@ -71,7 +71,7 @@ class AuthAccess extends AdminController return json($res); } - $admins = Db::name('admin')->field('id,username')->select(); + $admins = Db::name('admin')->field('id,username')->where('delete_time',0)->select(); $auth_groups = Db::name('auth_group')->field('id,title')->select(); View::assign(['admins'=>$admins,'auth_groups'=>$auth_groups]); @@ -99,7 +99,7 @@ class AuthAccess extends AdminController } $access = Db::name('auth_group_access')->group('uid')->find($id); - $admins = Db::name('admin')->field('id,username')->select(); + $admins = Db::name('admin')->field('id,username')->where('delete_time',0)->select(); $auth_groups = Db::name('auth_group')->field('id,title')->select(); View::assign(['admins'=>$admins,'auth_groups'=>$auth_groups,'access'=>$access]);