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

Forums / Security / How to set permission for particular view of module?

How to set permission for particular view of module?

2 posts, 1 answered
  1. CafeDelMar
    CafeDelMar avatar
    28 posts
    Registered:
    06 May 2007
    13 Jul 2010
    Link to this post
    Dear Telerik Team

    Is it possible to set permission for particular view of module?

    Let say there are two views (View A and B) and each view has its own permission such as:

    In View A, User is granted to create and delete an item
    but in view B user is granted to delete and view an item

    Thanks
    Febry Nastrioman 
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Jul 2010
    Link to this post
    Hi CafeDelMar,

    There are not granular permissions per view in 3.x editions. We will have granular permissions in Sitefinity 4.0.
    You can implement a custom permissions where you set which role ( you can use GetAllRoles()) what permissions should have. You need to persist the values in a custom table. Then in your views you need to hide "view", "create", "delete" button depending on the permissions that have been set for the current user and its role.

    Regards,
    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
    Answered
2 posts, 1 answered