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

Forums / Bugs & Issues / Set permissions Issue

Set permissions Issue

8 posts, 0 answered
  1. li
    li avatar
    30 posts
    Registered:
    02 Jan 2009
    14 Apr 2010
    Link to this post

    Hi

    I’m having some trouble configuring permissions for pages.

    Here is what I did:

    I created a top menu “Staff Only” and created some pages under it. And then I set “Anonymous access” to deny.

    I created a group called Staff Only SOP Editors. This group has read/write access to the Staff Only pages.

    When I log in as an Editor, however, some of the pages in Staff Only are invisible(Please see attached p1.jpg).

    I checked the difference between one invisible page(General) and one normal page(Personnel) -- Please see attached p2.jpg & p3.jpg. All the permissions are the same, but on the invisible page, all the "deny" checkboxes are inactive(disable) -- I can't select these checkboxes.

    Is this a bug or did I define the permissions in a wrong way?

    Thanks,


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    14 Apr 2010
    Link to this post
    Hi li,

    Check whether you have some permission inheritance from another - parent page. Note that the permissions set to Anonymous role apply to all custom roles  they do not apply to the built-in roles). When a given checkbox is not checked this means that a give role does not have rights. It is not necessary to have Deny checkbox checked.

    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.
  3. li
    li avatar
    30 posts
    Registered:
    02 Jan 2009
    14 Apr 2010
    Link to this post
    Hi Ivan,
    Thank you!
    I think you are right.

    But both of them(General & Personnel pages) have this line on their permission panel: This page inherits permissions from its parent.
    Is there any places I can see or set "permission inheritance from another"?

    "When a given checkbox is not checked this means that a give role does not have rights. It is not necessary to have Deny checkbox checked. "

    But why this happens on some pages but not on the others. How can I change that. -- How should I do if I want all the sub pages under "staff only" show When I log in as an Editor?

    Thanks,

  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    15 Apr 2010
    Link to this post
    Hi li,

    Make sure that the user you are logging with does not belong to an additional role which has the view permission to deny. In the case where there is a deny set it always takes precedence and permissions for other roles the user belongs to will be denied. This means that if the user belongs to multiple roles instead of setting deny you should just leave both check boxes empty.

    Greetings,
    Radoslav Georgiev
    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.
  5. li
    li avatar
    30 posts
    Registered:
    02 Jan 2009
    13 May 2010
    Link to this post
    Hi,
    I'm still having problem with this.
    This is driving me crazy, I have two pages with same permissions setting, but when I logged in as an Editor(please see the posts before), I can only see one of them, and this use just belongs to one role.

    How can I get the page setting detail through API -- I think these two pages have something different, but I can't find it in "permissions" panel.
    Or do you have any ideas about this?
    Thanks,
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 May 2010
    Link to this post
    Hi li,

    Unfortunately unless we can take a look at the actual site we can not suggest much further. It looks that one of the pages is getting additional permission settings. You can get a page through the API as described in this article. You can check permissions in code for the currently authenticated users using this snippet, where p is an object of type ICmsPage:
    PagePermission pagePerm = new PagePermission(p);
    bool hasViewRights = pagePerm.CheckDemand(CrudRights.View);


    Kind regards,
    Radoslav Georgiev
    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.
  7. li
    li avatar
    30 posts
    Registered:
    02 Jan 2009
    14 May 2010
    Link to this post
    Hi,
    Here is the site info, please login and take a look for me. Thank you so much:
    address: http://137.82.149.207

    Admin info
    account: admin2
    pwd: admin2

    A user account with the issue:
    account: dkelly
    pwd: dkelly

    I've created two group pages : 1. staff only & 2. home> staff only (please see the attached)
    They have same permissions, but the user dkelly can only see/access 2. home>staff only.

    Thanks,

  8. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    15 May 2010
    Link to this post
    Hi li,

    Your 1 page group has Deny permission for everyone role - this role is a common one for all users. You should uncheck the Deny setting and see the result. If users have neither allow nor deny then they will also not be able to see View/Create/Modify/Delete pages.

    Best wishes,
    Radoslav Georgiev
    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.
Register for webinar
8 posts, 0 answered