Skip to content

Commit bcb9af4

Browse files
author
ufec
committed
修复权限编辑操作
1 parent 99b49e2 commit bcb9af4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controller/admin/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private function buildList($list, $rules): array {
246246
public function editRule(): Response {
247247
$id = $this->request->post('id', 0);
248248
$rules = $this->request->post('rules', []);
249-
if ($rules) {
249+
if (is_array($rules)) {
250250
$needAdd = [];
251251
$has = (new AdminAuthRule())->where(['group_id' => $id])->select();
252252
$has = Tools::buildArrFromObj($has);

0 commit comments

Comments
 (0)