Copied to clipboard

Flag this post as spam?

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


  • seanrock 241 posts 462 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 4124 posts 22215 karma points MVP 9x 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 241 posts 462 karma points
    Jul 19, 2010 @ 21:03
    seanrock
    0

    @Matt

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

Please Sign in or register to post replies

Write your reply to:

Draft