将权限修改成无限级权限
This commit is contained in:
1 parent
56572d0b0a
commit
ba477154fa
7 files changed
+104
-233
No files matched your search
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user