Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Roles permissions editions #1537


User avatar
0
nikko created

I am developing a single tenant application. Users can buy subscriptions and they have different features and permissions. For example

Basic - cant send emails. Intermediate - can send 10 emails. Advanced - can send 30 emails.

From my understanding I cannot assign editions directly to users. What would be the best way to implement this in ABP? Should i create Roles like basic, intermediate and adanced and assign to the users and assign permissions to the Roles? The problem with permissions is that basic does not have and intermediate and advanced have but how do I control the amount of emails they can send?

Thanks.


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

    Hi,

    You are right, you cannot assign editions to users. And if you use roles for that, you cannot control the amount of emails by roles or permisisons.

    Maybe, you can use settings for that. You can add another tab next to roles tab on user editing dialog for editing user specific settings like AllowedEmailCount.

    You can take a look at settings documentation <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Setting-Management">http://aspnetboilerplate.com/Pages/Docu ... Management</a>.