+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Blog level Permissions- Not Blog Module permissions

Blog level Permissions- Not Blog Module permissions

3 posts, 0 answered
  1. kiran
    kiran avatar
    43 posts
    Registered:
    17 Nov 2010
    07 Jan 2011
    Link to this post
    Hello,
    We have three blogs in a website and we would like to create/set different permissions levels to each of these blogs (not to the entire blog module). We are presently using 3.7 SP1 version of Sitefinity. I have tried to accomplish this through Sitefinity CMS, but I don't think so that granular permissions are presently not provided out-of-box (I have read the blog FAQ's which says it is not available yet). Please correct me if I am wrong.

    Is there any way to set permission for each of these blogs such that a user can only access one blog or the blogs that he is assigned to and create a post in the assigned blog? Could you please provide me some alternatives if this can not be accomplished out-of-box. Can this be done through tweaking the code of the blog control (can this be done programmatically?)

    And finally, are the granular permissions feature/ permissions levels for different blogs provided in the new version of Sitefinity 4.0 to be released next week? Any advice would be really appreciated.Thank you for all your time.

    Regards,
    Kiran.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Jan 2011
    Link to this post
    Hi kiran,

    Granular permissions are implemented in Sitefintiy 4.0. In Sitefinity 3.x permissions for modules are per provider.

    1. Create a custom data layer where you are going to persist which role /user will see your  blogs. You can use Open Access ORM or LINQ to SQL

    2. Inside permissions view of the blogs provider you should implement anther sections where you get your roles and users for a role. You can use UserManager class and its methods to populate your control with data.

    3. Depending on the value that you will set in point 2 you have to persist the permissions for a given user and role. You should persist the following information in your table

    1- user
    2. blog name

    You have to use Generic Content API and Blogs API. to get the blog names

    4. You have to make queries through your data layer inside BlogsListView and hide the blog as shown in this post


    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. kiran
    kiran avatar
    43 posts
    Registered:
    17 Nov 2010
    09 Jan 2011
    Link to this post
    Hello Ivan,
    Thank you for your prompt reply.

    Regards,
    Kiran.
Register for webinar
3 posts, 0 answered