IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
The security configuration information is stored in the SecurityConfig class.
The configuration information for the permission sets is persisted in the Permissions property of the SecurityConfig class. The code below gets the configuration information for a permission set. The Telerik.Sitefinity.Security.SecurityConstants.Sets class contains the names of all permission sets.
In the following example, first, you initialize the SecurityConfig class. The Permissions property is a dictionary that accepts the permission set name as key. To get the blogs permission set, you use BlogsPermissions.Sets.Blog.SetNameas key.
The permission sets that the Permissions property stores contain all configuration information about the actions that can be granted or denied for the given set of objects. In the following example, blogsPermissions contains all actions that can be performed on blogs. You use the actions when creating permission associated with a permission set and granting and denying it for the principal. For more information, see For developers: Grant and deny permissions.
The following example initializes the view action for the blogs:
The Actions property of the Permission class is a dictionary that accepts the action name as key. To get the view action for the blog, you use BlogsPermissions.Sets.Blog.SetNameas key.
An action in Sitefinity CMS is characterized with a set of properties.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important