Skip to content

Commit

Permalink
fix: allow non-admin access to a user's own thread files
Browse files Browse the repository at this point in the history
Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams committed Feb 3, 2025
1 parent deacdc2 commit 5285e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/authz/thread.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (a *Authorizer) authorizeThreadFileDownload(req *http.Request, user user.In
if parts[0] != "" ||
parts[1] != "api" ||
parts[2] != "threads" ||
parts[4] != "file" {
parts[4] != "files" {
return false
}

Expand Down

0 comments on commit 5285e05

Please sign in to comment.