Is there any way to override permissions file

System Information
  • Strapi Version: 3.6.5
  • Operating System:
  • Database: mongo
  • Node Version:
  • NPM Version:
  • Yarn Version:

First of all, I really like to thank you guys for creating such a customizable CMS. In my project, I want to remove the delete permission from editor and author roles. I only want to keep it for super admin. Is there any way i can override strapi-admin/validation/permission file. Please suggest if there is any other way?
@DMehaffy - any suggestion is appreciated.

Simplest way I do it is like this:
You can have a look at the following url: /admin/settings/roles/
to get there: Settings > ADMINISTRATION PANEL > Roles > Edit the role you wish to edit.

If you really want to, but I wouldn’t recommend it is on the db directly in the strapi_permission table

Thanks @Ben_Henning . The problem here is with Settings > ADMINISTRATION PANEL > Roles > Edit the role you wish to edit. is either you select all the permission for a collection or none. I am not able to select only the Read and Update. That’s the reason I wanted to override the permissions.

Hi Team, can I get any suggestion on this one ?

My apologies for the delay,
how about fixing it via the db:
the table is called users-permissions_permission
search for the controller you wish to edit, change the enabled from 0 to 1 where the action and role is equal to the one you need to change.

UPDATE users-permissions_permission
SET enabled = 1
WHERE (action = find AND role = 1 AND controller = article);