Disable 'Access contents information' permission
Hi I want to add a Folder , not to acquire 'Access contents information' permission and to enable this only for 'Manager' Role .. and all this in Python. any ideas ?? thanks dragos
Dragos Chirila wrote:
I want to add a Folder , not to acquire 'Access contents information' permission and to enable this only for 'Manager' Role .. and all this in Python.
any ideas ??
Next time you should mention, what do you have tried and where you're stuck... you have far more chances to get an answer this way. Here's what you want: #### id='testfolder' # add folder context.manage_addFolder(id) # get folder object folder = getattr(context,id) # Set permission folder.manage_permission('Access contents information', roles=['Manager'], acquire=0) #### Cheers, Maik
participants (2)
-
Dragos Chirila -
Maik Jablonski