We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21cc9a4 commit 81fce83Copy full SHA for 81fce83
1 file changed
adminforth/modules/restApi.ts
@@ -1464,10 +1464,10 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
1464
if (!record){
1465
return { error: `Record with ${body['primaryKey']} not found` };
1466
}
1467
- if (!resource.options.allowedActions.delete) {
+ if (resource.options.allowedActions.delete === false) {
1468
return { error: `Resource '${resource.resourceId}' does not allow delete action` };
1469
- }
1470
-
+ }
+
1471
const { allowedActions } = await interpretResource(
1472
adminUser,
1473
resource,
0 commit comments