fix: adding upload action to the blacklist
This commit is contained in:
parent
b9af1cbbd9
commit
70c2cd9085
@ -66,7 +66,7 @@ api.resourcer.use(async (ctx: actions.Context, next) => {
|
||||
return next();
|
||||
}
|
||||
const { actionName } = ctx.action.params;
|
||||
if (['create', 'update', 'destroy', 'sort'].includes(actionName)) {
|
||||
if (['create', 'update', 'destroy', 'sort', 'upload'].includes(actionName)) {
|
||||
ctx.body = {
|
||||
data: {},
|
||||
meta: {},
|
||||
|
Loading…
Reference in New Issue
Block a user