Skip to content

Commit 86027a6

Browse files
committed
chore: remove dublicate check for allowed action for the "delete_record"
1 parent e9ada33 commit 86027a6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

adminforth/modules/restApi.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,9 +1459,6 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
14591459
if (!record){
14601460
return { error: `Record with ${body['primaryKey']} not found` };
14611461
}
1462-
if (resource.options.allowedActions.delete === false) {
1463-
return { error: `Resource '${resource.resourceId}' does not allow delete action` };
1464-
}
14651462

14661463
const { allowedActions } = await interpretResource(
14671464
adminUser,

0 commit comments

Comments
 (0)