modified 修复权限配置的BUG

This commit is contained in:
zhaoxiang 2019-07-02 16:22:39 +08:00
parent 438a358288
commit 8419e7f030

View File

@ -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();
}
}