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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...