Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

Gadget permissions



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.



Oct 11, 2013 13:00

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:

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

 See (doc is for CMS 6 but should still apply to CMS 7)

Oct 11, 2013 18:27

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

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.