17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1245 Views |
-
Hiding tabs in Site Content?

23 September 2008 at 12:52am
Hi everybody,
how can I hide or apply restricted permissions to the tabs on "Site Content" section ?
For example, I would want to disable Meta-data or Behaviour tabs for a group of users.Thanks
-
Re: Hiding tabs in Site Content?

23 September 2008 at 1:42am Last edited: 23 September 2008 1:42am
It works but I don't know if it is the best solution:
function getCMSFields() {
$fields = parent::getCMSFields();
if(Permission::check('USER')) {
$fields->removeByName("Meta-data");
$fields->removeByName("Behaviour");
}
return $fields;
}
| 1245 Views | ||
|
Page:
1
|
Go to Top |

