修复权限编辑操作

This commit is contained in:
ufec 2021-03-28 13:07:00 +08:00
parent 99b49e2d7b
commit bcb9af47ca

View File

@ -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);