[Product-Developers] Re: how to disable "Sharing" tab?

Wichert Akkerman wichert at wiggy.net
Tue Mar 16 15:34:40 UTC 2010


You can zap the permission in rolemap.xml in your genericsetup profile.

Wichert.


On 3/16/10 16:20 , Chris Crownhart wrote:
> Kess,
>
> I agrees, that would do it. But, does anyone know how to change this
> permission either programmatically or with generic setup? I guess I'm
> looking for the "Plone 3 way" to do this.
>
> Thanks,
>
> Chris
>
> On 3/16/10 8:46 AM, Kees Hink wrote:
>> One option: ZMI> site root> security : Uncheck "delegate roles"
>>
>> leejason wrote:
>>> Is there any way to disable "Sharing" tab? I've tried to set
>>> "visible=False"
>>> in the profiles XML, say MyContentType.xml, as below:
>>>
>>> <action title="Share1" action_id="sharing" category="object"
>>> condition_expr=""
>>> url_expr="string:${object_url}/nowhere" visible="False">
>>> <permission value="Modify portal content"/>
>>> </action>
>>>
>>> <action title="Share2" action_id="@@sharing" category="object"
>>> condition_expr=""
>>> url_expr="string:${object_url}/nowhere" visible="False">
>>> <permission value="Modify portal content"/>
>>> </action>
>>>
>>> But neither of these works. If I set "visible=False" for the
>>> following, it
>>> works, though.
>>>
>>> <action title="View" action_id="view" category="object"
>>> condition_expr=""
>>> url_expr="string:${object_url}" visible="True">
>>> <permission value="View"/>
>>> </action>
>>> <action title="Edit" action_id="edit" category="object"
>>> condition_expr=""
>>> url_expr="string:${object_url}/edit" visible="False">
>>> <permission value="Modify portal content"/>
>>> </action>
>>>
>>> BTW, the reason why I'd need this is because I'm developing a site to
>>> share
>>> "tangible" things. I'd design a "share" function by myself and the
>>> default
>>> "Sharing" tab in Plone would be misleading for my users.
>>>
>>> Thanks for any suggestion in advance, as I've burned several hours in
>>> vain.
>>>
>>>
>> _______________________________________________
>> Product-Developers mailing list
>> Product-Developers at lists.plone.org
>> http://lists.plone.org/mailman/listinfo/product-developers
>





More information about the Product-Developers mailing list