Role Provider Module


I believe it's best practice to create a Role provider module, via a blank module temple, then add the role required to that module. The rational being, to keep it loosely coupled.

How then do I use that module from another module in the same application?

Thus, how can I check a users role from a login action, when using a role provider module.


Hello @David Miller 

1. In the Roles module, set the 'Public' property to 'Yes'.
2. In the consumer module, add the Role module as a dependency under 'Manage Dependencies'.
3. You will then be able to view and access the Role actions in the Logic tab under the 'Roles' folder.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.