mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
Merge master into PR branch
Resolve channel_join_request ABAC call to use channel-scoped BuildAccessControlSubject per upstream fix. Co-authored-by: mattermost-code <matty-code@mattermost.com>
This commit is contained in:
commit
fe82bf0a52
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ func (a *App) evaluateChannelMembership(rctx request.CTX, user *model.User, chan
|
|||
return false, nil
|
||||
}
|
||||
|
||||
subject, appErr := a.BuildAccessControlSubject(rctx, user.Id, user.Roles, "")
|
||||
subject, appErr := a.BuildAccessControlSubject(rctx, user.Id, user.Roles, channel.Id)
|
||||
if appErr != nil {
|
||||
return false, appErr
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue