Conditionally show "Publish" tab using XML extension

I'm trying to conditionally show the “publish” tab using an XML extension. I only want it to appear when the current user is an administrator. Here's what I have so far, but the publishing tab still appears for non-admins:

0 votes

1 answers

1859 views

ANSWER



Hey Stupid! Shove this in your XML Extension to disable that tab for all “members”.

<filter-id>denyForGroup1</filter-id>

<rule grant="false">
  <group>members</group>
</rule>

0 votes