Skip to content

Commit

Permalink
MM-56461 fix guest user access to public runs. (#1892)
Browse files Browse the repository at this point in the history
  • Loading branch information
crspeller authored Mar 21, 2024
1 parent 0ed94b0 commit 1aef10e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/api/graphql_root_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ func (r *RunRootResolver) Runs(ctx context.Context, args struct {
}
userID := c.r.Header.Get("Mattermost-User-ID")

requesterInfo := app.RequesterInfo{
UserID: userID,
TeamID: args.TeamID,
IsAdmin: app.IsSystemAdmin(userID, c.pluginAPI),
requesterInfo, err := app.GetRequesterInfo(userID, c.pluginAPI)
if err != nil {
return nil, err
}
requesterInfo.TeamID = args.TeamID

if args.ParticipantOrFollowerID == client.Me {
args.ParticipantOrFollowerID = userID
Expand Down

0 comments on commit 1aef10e

Please sign in to comment.