We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99b49e2 + bcb9af4 commit 89199a2Copy full SHA for 89199a2
app/controller/admin/Auth.php
@@ -246,7 +246,7 @@ private function buildList($list, $rules): array {
246
public function editRule(): Response {
247
$id = $this->request->post('id', 0);
248
$rules = $this->request->post('rules', []);
249
- if ($rules) {
+ if (is_array($rules)) {
250
$needAdd = [];
251
$has = (new AdminAuthRule())->where(['group_id' => $id])->select();
252
$has = Tools::buildArrFromObj($has);
0 commit comments