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 1535 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 4047 posts 12900 karma points MVP 2x
    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 1535 karma points
    Aug 22, 2011 @ 23:50
    Petr Snobelt
    0

    Hi Richard,

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

    P.

Please Sign in or register to post replies

Write your reply to:

Draft