You could try this in Global.asax.cs:
public void Application_Start(object sender, EventArgs e) {
EditPanel.LoadedPage += new LoadedPageEventHandler(EditPanel_LoadedPage);
}
private void EditPanel_LoadedPage(EditPanel sender, LoadedPageEventArgs e) {
if (e.Page.PageTypeName != "MyPageTypeName") // Modify this
return;
int tabIdToHide = 10; // Modify this
foreach (PropertyData prop in e.Page.Property) {
if (prop.OwnerTab == tabIdToHide && !EPiServer.Security.PrincipalInfo.CurrentPrincipal.IsInRole("MyRole"))
prop.OwnerTab = -1;
}
}
Is it possible to hide/display the tabs that are displayed when editing a page on different groups.
I know that I can hide/display the tabs depending on "accessright" but I would like to do it by groups if it's possible.
/Per