Give Admin role to all dto

Hi

I secured all my DTO’s. I can now add roles to the various DTO’s but the “Admin” role has access to everything. What would be the easiest way to add this; is there a hook where I can “add” Admin to the required role without adding the attribute to all my DTO’s ?

By default the RoleNames.Admin (“Admin”) role should already be allowed access to any DTOs protected using [RequiredRole] or [RequiresAnyRole] attributes.

1 Like

Ah ok! Didn’t know that. Great!