Marco wrote:
Jean-Marc Orliaguet wrote:

here is the code found in the original installer, with the permissions
to set on portal_themes for ThemeManager

    tool_id = 'portal_themes'
    perms = ('Manage Themes',
             'Copy or Move',
             'Change permissions',
             'Delete objects',
             'Add portal content',
             'Add Documents, Images, and Files',
             'Manage properties',
             'Change Images and Files',
    )
    pr(" Verifying permissions on the '%s' tool" % tool_id)
    tool = getattr(portal, tool_id)
    for perm in perms:
        setperms(tool, {perm: ('Manager', 'Owner', 'ThemeManager')},
        pr=pr)
    tool.reindexObjectSecurity()

Thank you Jean-Marc.

It works. I just had to set the permission "Manage Themes" for the action of
portal_themes tool.

/m



OK, you will have to set the others too depending on what you want to do in the theme.

/JM
_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to