Hi everyone,I'm trying to create some custom permission groups and then show or hide share actions based on permissions inherited from these groups.For example, I can define a "VersionerOnly" permission group, who can only read properties and content and who only has write access to the content.
<!– Only upload new versions –>
<permissionGroup name="VersionerOnly" allowFullControl="false" expose="true">
<includePermissionGroup permissionGroup="Read" type="sys:base" />
<includePermissionGroup type="sys:base" permissionGroup="WriteContent"/>
</permissionGroup>
What I want to do is now set up the upload new version action in share to only be available for those with writecontent permission, not just write permission (write is writecontent and writeproperties). Like so:
<!– Upload new version –>
<action id="document-upload-new-version" type="javascript" label="actions.document.upload-new-version">
<param name="function">onActionUploadNewVersion</param>
<permissions>
<permission allow="true">WriteContent</permission>
</permissions>
<evaluator>evaluator.doclib.action.upload</evaluator>
<evaluator>evaluator.doclib.action.editableByCurrentUser</evaluator>
<evaluator negate="true">evaluator.doclib.metadata.isLocked</evaluator>
</action>
I'm quite sure the user I'm testing with has the VersionerOnly role (only gets the read interfaces components), BUT the upload a new version button isn't displaying. I've also tried checking the action with a collaborator, who definitely has writecontent permission as well, and the action is not show.I've tried setting the expose to true for the WriteContent permission, in case that's why share is ignoring the WriteContent permission:
<permissionGroup name="WriteContent" expose="true" allowFullControl="false" />
So I guess my question is, why doesn't share see/use WriteContent permission in its actions? Is there further configuration required to expose the WriteContent permission in Share?Thank you very much for your help.Regards,Matthew