I'm migrating over a IHttpModule from v4 to v7 that secures all .axd requests and makes sure you are logged into the umbraco backend before you can proceed.
In v4 I used the umbraco.businesslogic assembly to call User.GetCurrent() but now in v7 this is always returning Null even though I'm logged into the umbraco admin section.
In v7 how do I check if the current request is an admin user?
Is this getting the backoffice user or the membership user? When loged into the backoffice panel UmbracoContext.Current.Security.CurrentUser returns null
Umbraco 7 Admin User Check
I'm migrating over a IHttpModule from v4 to v7 that secures all .axd requests and makes sure you are logged into the umbraco backend before you can proceed.
In v4 I used the umbraco.businesslogic assembly to call User.GetCurrent() but now in v7 this is always returning Null even though I'm logged into the umbraco admin section.
In v7 how do I check if the current request is an admin user?
Hi Mike,
You can use method like that:
Also:
For creating userService instance :
Thanks, Alex
Hey Alex,
Is this getting the backoffice user or the membership user? When loged into the backoffice panel UmbracoContext.Current.Security.CurrentUser returns null
is working on a reply...