Hia all! I have a little question. I have a from people can use to change some properties of a folder. But I would also like them to be able to change the folder ID How should I do that. The thing I´ve tried is with manage_renameObject(id=old_id, new_id=new_id) But then only the Manager can change the folder name.The 'moderator' gets you are not alowed to acces manage_renameObject. I just cant figure out which security to turn on/off for my moderators to get them able to change the folder ID. Can anyone tell me what the best way to do this is? Thanks in advance! James van der Veen
James van der Veen writes:
The thing I´ve tried is with manage_renameObject(id=old_id, new_id=new_id) But then only the Manager can change the folder name.The 'moderator' gets you are not alowed to acces manage_renameObject. You are looking for "Proxy roles"....
Dieter
The thing I´ve tried is with manage_renameObject(id=old_id, new_id=new_id) But then only the Manager can change the folder name.The 'moderator' gets you are not alowed to acces manage_renameObject.
If the manager can do it, the moderator (I guess a custom role you created) can do it too with little security changes.
I just cant figure out which security to turn on/off for my moderators to get them able to change the folder ID.
Pure guess, but imho it should be the "manager" permission. I didn't found precise docs about it (look at the sources:-) You can also use a proxy role (manger in this case) on the particular method that rename folders, but then any user will be able to rename folders. Imho it would be better to give more permissions to the moderator role only in the context of the folders that can be renamed... hth Philippe
participants (3)
-
Dieter Maurer -
James van der Veen -
Philippe Jadin