Set access rights to a group of properties on a page

Vote:
 

I have a set of properties in a page grouped in different groups (with [Display(GroupName=...)]).

How can I restrict access rights to a set of properties grouped togehter? Generally I don't want the editors to have access to all the page properties, you will have to be an administrator to be able to edit all page properties.

#138466
Sep 22, 2015 12:47
Vote:
 

Hi,

There are few options of setting access rights for tabs.

You could used typed tabs http://world.episerver.com/blogs/Per-Bjurstrom/2015/2/typed-tabsgroups/

[GroupDefinitions]
public static class GroupNames
{
[RequiredAccess(AccessLevel.Administer)]
public const string AdminSettings= "AdminSettings";
}


You could use Admin interface. Go to Admin mode->Config->Edit Tabs and set access rights

And finally if you need to set access rights on property level you could use MetadataExtender. Here is forum thread about it:
http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=119123

#138467
Sep 22, 2015 13:12
* 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.