将权限修改成无限级权限

This commit is contained in:
cxdbz committed 2020-02-11 14:59:05 +08:00
1 parent 56572d0b0a
commit ba477154fa
7 files changed
+104 -233

No files matched your search

+4 -1
View File
@@ -63,7 +63,10 @@ class AuthRule extends Base
if($value['pid'] == $pid)
{
# 判断当前权限是否被选中
array_search($value['id'], $arrSelected) ? $value['select'] = true : $value['select'] = false;
// array_search($value['id'], $arrSelected) == '' ? $value['select'] = false : $value['select'] = true;
$value['select'] = in_array($value['id'],$arrSelected);
// dump($value['id']);
// halt($a);
$child[$value['id']] = $value;
unset($arrAll[$key]);