Gadget permissions

Vote:
 

Hi,

Is it possible to define permissions for gadgets?

We have developed a translation gadget and have a client request of limiting access to it per role. I can see permissions per page and also permissions for functions, but not for gadgets.

Any tips appriciated.

Thanks,

Helder

#75929
Oct 11, 2013 13:00
Vote:
 

I don't think you can set access rights for gadgets anywhere in the UI, but your gadget developers can set permissions explicitly in the gadget class decoration, like this:

[Gadget]
[Authorize(Roles = "CmsAdmins, YourCustomRole")]
public class MyGadget : SomeBaseClass
{
}

 See http://world.episerver.com/Documentation/Items/Tech-Notes/EPiServer-CMS-6/EPiServer-CMS-60/OnlineCenter-Developer-Documentation/ (doc is for CMS 6 but should still apply to CMS 7)

#75949
Oct 11, 2013 18:27
Vote:
 

appreciate it, Arild, we'll give it a try.

#75976
Oct 14, 2013 17:42
* 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.