I could use another set of eyes on this one.
I’ve moved some TVs to a tab called Admin. I want hide this tab from the content editor role along with a few other tabs.
So far all is working. The TVs have moved to the new tab. The other tabs, meta, preview etc are hidden from this role, but the Admin tab is still visible to the content editor role.
All the other rules are working as expected.
Here’s my mm_rules
<?php
// MM rules can go in here, instead of a chunk
// If you copy them to a chunk, don't include the opening and closing PHP tags
// ------------------------ INSERT YOUR RULES HERE --------------------
// These are example rules -- replace them with your own
// PHP *is* allowed
// For everyone
mm_default('pub_date');
mm_renameField('','');
mm_createTab('Admin','docadmin','');
mm_createTab('Publication Dates', 'pubdates');
mm_moveFieldsToTab('tvchunksforhead,tvchunksabovecontent,tvchunksbelowcontent', 'docadmin');
mm_widget_showimagetvs(); // Always give a preview of Image TVs
// For everyone except administrators
mm_hideFields('alias,description,link_attributes,is_richtext,log,searchable,cacheable,longtitle,clear_cache,parent', '!1');
mm_moveFieldsToTab('published,pub_date,unpub_date', 'pubdates','!1');
mm_hideTabs('settings,meta,docadmin,preview',!1');
// ------------------------ END OF RULES --------------------
?>