mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-05 19:41:43 +08:00
修复权限编辑操作
This commit is contained in:
parent
99b49e2d7b
commit
bcb9af47ca
@ -246,7 +246,7 @@ class Auth extends Base {
|
||||
public function editRule(): Response {
|
||||
$id = $this->request->post('id', 0);
|
||||
$rules = $this->request->post('rules', []);
|
||||
if ($rules) {
|
||||
if (is_array($rules)) {
|
||||
$needAdd = [];
|
||||
$has = (new AdminAuthRule())->where(['group_id' => $id])->select();
|
||||
$has = Tools::buildArrFromObj($has);
|
||||
|
Loading…
x
Reference in New Issue
Block a user