fix: remove backup file
This commit is contained in:
parent
09985ed8bc
commit
56d4d240a1
@ -654,6 +654,11 @@ export class PluginACL extends Plugin {
|
|||||||
if (action == 'destroy' && !ctx.action.resourceName.includes('.')) {
|
if (action == 'destroy' && !ctx.action.resourceName.includes('.')) {
|
||||||
const repository = actionUtils.getRepositoryFromParams(ctx);
|
const repository = actionUtils.getRepositoryFromParams(ctx);
|
||||||
|
|
||||||
|
if (!repository) {
|
||||||
|
await next();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// params after merge with fixed params
|
// params after merge with fixed params
|
||||||
const filteredCount = await repository.count(ctx.permission.mergedParams);
|
const filteredCount = await repository.count(ctx.permission.mergedParams);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user