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 i want to return the current user with this code
var currentUser = UmbracoContext.Security.CurrentUser;
but its return null
and how can i return if this user has the permeation to access a node with its id or path ?
Hello,
Have you created your own login controller ?
Are you asking about Backoffice User's or Front facing members?
Backoffice User's
For those that have also wandered here, to get the BackOffice User you can do the following:
var wrapper = new HttpContextWrapper(HttpContext.Current); var currentUserObj = wrapper.GetCurrentIdentity(true);
I hope it helps.
How can i get Front facing members id
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to get current user and if has permeation to access the node ?
Hi i want to return the current user with this code
but its return null
and how can i return if this user has the permeation to access a node with its id or path ?
Hello,
Have you created your own login controller ?
Are you asking about Backoffice User's or Front facing members?
Backoffice User's
For those that have also wandered here, to get the BackOffice User you can do the following:
I hope it helps.
How can i get Front facing members id
is working on a reply...