Plugin Permissions in Edit Mode (CMS 5)

Vote:
 

Hi,

I have written a couple of plugins that appear as tabs in Edit Mode (along the same row as things like View, Edit, Version, etc...).

The problem that I have, is that if a user is a member of the WebEditors group they can access the tabs regardless of whether-or-not they have permissions to change content.

What I would like to do is be able to disable the plugin tab if the user does not have Change permission (just like the Edit tab does).

Thanks

 

Carl

#19631
Apr 22, 2008 11:47
Vote:
 

I think you can specify the required access level in the GuiPlugin attribute

[GuiPlugIn(DisplayName = "TestPlugin", Description = "", Area = PlugInArea.EditPanel, Url = "~/TestPlugin.ascx", RequiredAccess= EPiServer.Security.AccessLevel.Edit)]

 

#19635
Apr 22, 2008 13:46
Vote:
 

Works an absolute treat!

 Thanks Mari.

#19648
Apr 22, 2008 16:33
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.