More in this section
Forums / Security / How to set permission for particular view of module?

How to set permission for particular view of module?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 1 answered
  1. CafeDelMar
    CafeDelMar avatar
    28 posts
    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

    Febry Nastrioman 
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    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.

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