Skip to content

Commit

Permalink
fix: citizenstore activity for superuser
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Oct 5, 2024
1 parent aec1764 commit bd04502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/go/proto/services/citizenstore/citizenstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func (s *Server) ListUserActivity(ctx context.Context, req *ListUserActivityRequ

if userInfo.UserId == req.UserId {
// If isn't superuser or doesn't have 'Own' activity feed access
if !userInfo.SuperUser || !slices.Contains(fields, "Own") {
if !userInfo.SuperUser && !slices.Contains(fields, "Own") {
return resp, nil
}
}
Expand Down

0 comments on commit bd04502

Please sign in to comment.