I am creating a Plone site by help of this book using 4.3.x
Professional Plone for Development
so i have now 4 members :
- Manager
- Customer
- Ticket Collector
- Staff
so that I customized some permissions according to role but I am fixed at certain point and unable to understand how to set appropriate permissions because as I changed my permissions it doesn't reflect over my site there are two option are there as you can see in following code:
mp = portal.tickets.manage_permission
mp(CancelAndReinstate, ['Manager', 'Staff'], 0)
mp('Access contents information', ['Manager','staff'], 0)
mp(permissions.ListFolderContents, ['Manager',], 1)
mp(permissions.View, ['Manager','Customer' ], 1)
portal.tickets.reindexObject()
Here what does 0 and 1 do because these changes are not reflecting over my site so am unable to understand concept. I want to create differ menus as per user role.
The third argument to
manage_permission
tells us whether this permission is also inherited from the parent folder:(
AccessControl/interfaces.py
)