Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Security > Erratic behaviour on rights

Erratic behaviour on rights

  • Zyad Rujeedawa avatar

    Posted on Dec 22, 2010 (permalink)

    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 ?

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Dec 22, 2010 (permalink)

    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

    Reply

  • Zyad Rujeedawa avatar

    Posted on Dec 22, 2010 (permalink)

    Exactly, but it's not working.
    That's why I posted the question on this forum.

    It works 1 on 2 tries.

    Zyad

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Dec 22, 2010 (permalink)

    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

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Security > Erratic behaviour on rights