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.
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.
We had hoped for an easier way, ie not to change any existing "core" files, but that was a big hope.