mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-05-21 04:19:16 +08:00
commit
89199a240f
@ -246,7 +246,7 @@ class Auth extends Base {
|
|||||||
public function editRule(): Response {
|
public function editRule(): Response {
|
||||||
$id = $this->request->post('id', 0);
|
$id = $this->request->post('id', 0);
|
||||||
$rules = $this->request->post('rules', []);
|
$rules = $this->request->post('rules', []);
|
||||||
if ($rules) {
|
if (is_array($rules)) {
|
||||||
$needAdd = [];
|
$needAdd = [];
|
||||||
$has = (new AdminAuthRule())->where(['group_id' => $id])->select();
|
$has = (new AdminAuthRule())->where(['group_id' => $id])->select();
|
||||||
$has = Tools::buildArrFromObj($has);
|
$has = Tools::buildArrFromObj($has);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user