mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 修复权限配置的BUG
This commit is contained in:
parent
438a358288
commit
8419e7f030
@ -288,10 +288,7 @@ class Auth extends Base {
|
||||
}
|
||||
if (count($needDel)) {
|
||||
$urlArr = array_keys($needDel);
|
||||
AdminAuthRule::destroy([
|
||||
'group_id' => $postData['id'],
|
||||
'url' => ['in', $urlArr]
|
||||
]);
|
||||
(new AdminAuthRule())->whereIn('url', $urlArr)->where('group_id', $postData['id'])->delete();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user