fix: remove backup file

This commit is contained in:
Chareice 2024-03-04 17:46:58 +08:00
parent 09985ed8bc
commit 56d4d240a1
No known key found for this signature in database

View File

@ -654,6 +654,11 @@ export class PluginACL extends Plugin {
if (action == 'destroy' && !ctx.action.resourceName.includes('.')) {
const repository = actionUtils.getRepositoryFromParams(ctx);
if (!repository) {
await next();
return;
}
// params after merge with fixed params
const filteredCount = await repository.count(ctx.permission.mergedParams);