Skip to content

Commit 89199a2

Browse files
Zhao-githubgitee-org
authored andcommitted
!25 修复权限编辑操作
Merge pull request !25 from Ufec/ufec
2 parents 99b49e2 + bcb9af4 commit 89199a2

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)