Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • seanrock 158 posts 337 karma points
    Jul 18, 2010 @ 21:11
    seanrock
    0

    IsLoggedOn returns false for admin user

    If the admin user has complete control surely IsLoggedOn should return true when the admin user is logged in??? How else would you know if the admin user is logged in and you do not have role based security enabled?

    An IsAdmin() method would be very handy for this situation.

  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Jul 18, 2010 @ 22:01
    Matt Brailsford
    0

    Hey,

    Are you working from XSLT or .NET?

    Looking at the umbraco.library method, it looks like it works purley for Members. As admin is a User and not a Member, IsLoggedIn wouldn't work. Is using .NET, you could always check the standard

    Request.IsAuthenticated

    And the standard Membership provider methods for getting info of the current user

    Membership.GetUser()

    Matt

  • seanrock 158 posts 337 karma points
    Jul 19, 2010 @ 21:03
    seanrock
    0

    @Matt

    Neither worked. Request.IsAuthenticated is always false and Membership.GetUser() returns null.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies