Copied to clipboard

Flag this post as spam?

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


  • Simon Dingley 1431 posts 3332 karma points c-trib
    Mar 16, 2010 @ 17:08
    Simon Dingley
    0

    Can I get the logged in user inside of a SaveEventHandler

    I am working on some member auditing stuff and need to find out if a user changed a member details, if they did I need to get hold of the user id for logging purposes. Is this possible and if so how can I get the current user from inside my event handler. Not sure if I am having a blonde moment or if it just isn't possible?

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Mar 16, 2010 @ 17:14
    Dirk De Grave
    0

    Simon,

    User.GetUser() should do the trick

     

    Cheers,

    /Dirk

  • Simon Dingley 1431 posts 3332 karma points c-trib
    Mar 16, 2010 @ 17:40
    Simon Dingley
    0

    Aha, so it was a dumb moment - thanks.

    Is there a difference between:

    User.GetUser()

    and

    User.GetCurrent()
  • Simon Dingley 1431 posts 3332 karma points c-trib
    Mar 16, 2010 @ 17:41
    Simon Dingley
    0

    I will shut up now, there obviously is as one requires a parameter. Having a very bad day after the lack of sleep last night.

  • 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