1
0
Fork 0
master
panliang 2023-12-11 11:57:18 +08:00
parent 70eda0256e
commit 909a1e0657
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class PartyCateService extends BaseService
$permissions = Cache::get('parte_cate_id_permission', function () use ($user) {
return $user->allPermissions()->where(fn ($item) => Str::startsWith($item->slug, 'party_cate_') && $item->http_method)->pluck('http_method')->all();
});
return $permissions;
return count($permissions) == 0 ? [0] : $permissions;
}
public function preDelete(array $ids)