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

Forums / Security / Erratic behaviour on rights

Erratic behaviour on rights

4 posts, 0 answered
  1. Zyad Rujeedawa
    Zyad Rujeedawa avatar
    31 posts
    Registered:
    18 Feb 2010
    22 Dec 2010
    Link to this post
    Hi,

    I created a new role, gave all the rights to this role, except

    Manage users
    Manage permissions

    I also gave permissions to
    Manage files

    I then added a new user to this role.

    When I log as this user, I sometimes see the FILES link on the dashboard and on the header.

    Sometimes it appears, and sometimes it disappears during the same session.  It's very very erractic.

    Any idea ?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Dec 2010
    Link to this post
    Hello Zyad,

    If the role has ManageFiles permissions there should not be a problem to see the link.

    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. Zyad Rujeedawa
    Zyad Rujeedawa avatar
    31 posts
    Registered:
    18 Feb 2010
    22 Dec 2010
    Link to this post
    Exactly, but it's not working.
    That's why I posted the question on this forum.

    It works 1 on 2 tries.

    Zyad
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Dec 2010
    Link to this post
    Hi Zyad,

    Unfortunately I am not able to replicate this issue locally with the latest official release of Stiefinity 3.7. Please check whether the user you use does not belong to two or more roles. The actual code that we show hide the permissions is inside Sitefinity\Admin\Default.aspx.cs
    and below is the condition

    if (filesLi != null && filesLink != null && !perm.CheckDemand())


    perm = new Telerik.Cms.Security.GlobalPermission(Telerik.Cms.Security.GlobalRights.ManageFiles);
        if (filesLi != null && filesLink != null && !perm.CheckDemand())
        {
            filesLi.Attributes["class"] += " dis";
            filesLink.Attributes["href"] = "#";
        }


    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
Register for webinar
4 posts, 0 answered