Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Maton 387 posts 659 karma points
    Jul 05, 2009 @ 20:54
    Tom Maton
    0

    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

  • Adriano Fabri 383 posts 1280 karma points
    Apr 08, 2010 @ 14:02
  • 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.

Please Sign in or register to post replies