Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass down SignedUserName down to AccessLogger context #16605

Merged
merged 5 commits into from
Aug 4, 2021

Commits on Aug 2, 2021

  1. Pass down SignedUserName down to AccessLogger context

    Unfortunately when the AccessLogger was moved back before the contexters the
    SignedUserName reporting was lost. This is due to Request.WithContext leading to a
    shallow copy of the Request and the modules/context/Context being within that request.
    
    This PR adds a new context variable of a string pointer which is set and handled
    in the contexters.
    
    Fix go-gitea#16600
    
    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    f784e85 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2021

  1. Configuration menu
    Copy the full SHA
    54d1553 View commit details
    Browse the repository at this point in the history
  2. handle nil ptr issue

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    cf5004c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6d2ec31 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2021

  1. Configuration menu
    Copy the full SHA
    c8df0b2 View commit details
    Browse the repository at this point in the history