Hide "Change access rights" in Edit Mode

Vote:
 

Hi, is there any way to hide the "Change access rights"-button in the toolbar in edit mode in CMS 6 R2?

We are working on another solution for the change access rights in edit mode and doesn't want a duplicate funcrion there.

/ Daniel

#51655
Jun 20, 2011 8:59
Vote:
 

We did it by using the virtual path mapping provider to deliver an adapted version of the ~/yourUIpath/CMS/Edit/CommandActions.ascx file.

Simply copy that file to your project, change whatever you need to change and use the mapper (activated and configured in episerver.config, there are examples in the comments there) to make that file be used instead. We needed some conditional logic (we only display the button to certain "super" administrators) and changed the Inherits property to point to our own class which inherits from the original base class, thus "injecting" code in the inheritance hierarchy.

#51657
Jun 20, 2011 10:17
Vote:
 

Ok, thx.

We had hoped for an easier way, ie not to change any existing "core" files, but that was a big hope.

#51664
Jun 20, 2011 11:25
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.