Nov 20, 2012 at 5:51 AM
Edited Nov 20, 2012 at 5:52 AM
I have really simple questions about permissions.
I saw how Orchard.Blogs module implemented the interface IPermissionProvider. And I created one for my own module (Orchard.MyModule), and within my module there are two content types (MyObjectAlpha, MyObjectBeta).
In the Admin window, role editing display. there are three groups of permissions generated:
- Orchard.MyModule Feature - generated from the implementation of IPermissionProvider
- MyObjectAlpha - dynamically generated from the content type
- MyObjectBeta - dynamically generated from the content type
Here is my question:
1. How can I hide the permission group 2 (MyObjectAlpha), since I have implemented it in the permission group 1 (Orchard.MyModule Feature)? Such as there is no permission group for Blog content type.
2. How can I utilize the dynamically generated permission group 3 (MyObjectBeta) within in my code? For example: