Base solution for your next web application
Open Closed

Setting up controller permissions by roles instead of by permissions #9473


User avatar
0
elferone created

Hi!

I'm wondering if it's possible with the asp.net zero framework to setup my controllers and controller actions to validate the user's roles instead of the user's permissions. This way, working with our customer, we could setup pre-defined roles and enforce those directly in the application (examples: Administrator, User, UserReadOnly, Supervisor, SectionSpecificUser, etc.).

We're encountering situations where we have "pages" that have dependencies on multiple permissions and we're looking at good solutions for this.

Thanks !


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @elferone,

    It is not supported by default. However, you can write a similar attribute to AbpAuthorize and implement it yourself.