generated from panliang/owl-admin-starter
party
parent
70eda0256e
commit
909a1e0657
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue