More in this section

Forums / Developing with Sitefinity / Where are the default rights defined?

Where are the default rights defined?

2 posts, 0 answered
  1. David
    David avatar
    22 posts
    Registered:
    04 May 2009
    05 Jun 2009
    Link to this post
    In a fresh install of 3.6 I see the following types of rights available to set for roles:

    Manage users
    Manage permissions
    Manage files
    Edit templates
    CmsAccess

    As we will be doing some custom development which is likely to need similar security, I want to understand the implementation of these roles.

    I can see that roles are mapped to specific permissions in the sf_SecPerms table.  But after plenty of poking around I haven't been able to find where those 5 rights are defined. Is it baked into a DLL?  Is it in the database?  Is it in config?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    06 Jun 2009
    Link to this post
    Hi David,

    The permissions - called Global Permissions are built into Telerik.Cms assemble. Unfortunately, most of the methods are private or static and cannot be overridden. For instance you could create your own class that inherits Telerik.Cms.Security.Rights and defines global rights.

    example:

    [LocalRight("Access")]  
    public int Access  
      {  
        get 
        {  
          return 16;  
        }  
      } 

    Then you need to use your custom class in your implementations.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered