Copied to clipboard

Flag this post as spam?

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


  • Petr Snobelt 923 posts 1534 karma points
    Jan 23, 2011 @ 11:21
    Petr Snobelt
    0

    How to check if user is logged into umbraco backend

    Hi,

    is there a way how to check (in template) if user is logged into backend? To add some admin functions like link to alternate templates, export etc.

     

    Thanks 

    Petr

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jan 23, 2011 @ 14:08
    Richard Soeteman
    0

    Hi Petr,

    Didn't test this but I think you should check if User.GetCurrent() is not null.

    Cheers,

    Richard

  • Petr Snobelt 923 posts 1534 karma points
    Aug 22, 2011 @ 23:50
    Petr Snobelt
    0

    Hi Richard,

    Thanks I use full path: umbraco.BusinessLogic.User.GetCurrent()

    P.

  • 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