Nuxeo mailing list archives
[CPS-users] Re: Re: theme designer priveleges
Jean-Marc Orliaguet
jmo at ita.chalmers.se
Wed Aug 30 15:39:46 CEST 2006
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
More information about the cps-users
mailing list
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.