User currently logged into the editor always returning Admin
Hi all,
I am in the nearing stages of completling my adobe air app for publishing "send to publish" pages but there seems to be one issue that I am having an issue with.
What I am doing is gathering data from the "send to publish" page eg. Editor who sent the page to be published Date and Time of it been sent Path of the page Page ID AKA Node All the XML content
I can get everything correctly apart from the editor who sent it wo be published it is always returning the name as admin even if I am logged in as Tom
The code I am using is like so:
//On the event of a node been send to publish it fires an event public XMLGenerator() { Document.AfterSendToPublish += new Document.SendToPublishEventHandler(Document_AfterSendToPublish);
}
void Document_AfterSendToPublish(Document sender, , SendToPublishEventArgs e) { string editorUserName = sender.User.LoginName.ToString(); // This is returning the name as Admin all the time }
Is this an known issue? I have looked on codeplex but could not find anything.
User currently logged into the editor always returning Admin
Hi all,
I am in the nearing stages of completling my adobe air app for publishing "send to publish" pages but there seems to be one issue that I am having an issue with.
What I am doing is gathering data from the "send to publish" page eg.
Editor who sent the page to be published
Date and Time of it been sent
Path of the page
Page ID AKA Node
All the XML content
I can get everything correctly apart from the editor who sent it wo be published it is always returning the name as admin even if I am logged in as Tom
The code I am using is like so:
//On the event of a node been send to publish it fires an event
public XMLGenerator()
{
Document.AfterSendToPublish += new Document.SendToPublishEventHandler(Document_AfterSendToPublish);
}
void Document_AfterSendToPublish(Document sender, , SendToPublishEventArgs e)
{
string editorUserName = sender.User.LoginName.ToString(); // This is returning the name as Admin all the time
}
Is this an known issue? I have looked on codeplex but could not find anything.
I am using
Umbraco 4.0.2.1
.NET 2.0
Thanks
Tom
Hi,
I think we have the same problem
:-)
http://our.umbraco.org/forum/developers/api-questions/8383-Problems-to-retrieve-the-current-user-logged-into-Backend
Adriano
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.