Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
Hi Petr,
Didn't test this but I think you should check if User.GetCurrent() is not null.
Cheers,
Richard
Hi Richard,
Thanks I use full path: umbraco.BusinessLogic.User.GetCurrent()
P.
is working on a reply...
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.
Continue discussion
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
Hi Petr,
Didn't test this but I think you should check if User.GetCurrent() is not null.
Cheers,
Richard
Hi Richard,
Thanks I use full path: umbraco.BusinessLogic.User.GetCurrent()
P.
is working on a reply...
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.