Skip to content

Commit

Permalink
data: views: fix streams by project filter (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
gioelecerati authored Aug 30, 2024
1 parent 90f0aaa commit 665bf99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (c *Client) ResolvePlaybackId(spec QuerySpec, assetID, streamID string) (Qu
if res.Filter.UserID != stream.UserID {
return QuerySpec{}, fmt.Errorf("error getting stream: verify that stream exists and you are using proper credentials")
}
if res.Filter.ProjectID != "" && stream.ProjectID != "" && res.Filter.ProjectID != stream.UserID {
if res.Filter.ProjectID != "" && stream.ProjectID != "" && res.Filter.ProjectID != stream.ProjectID {
return QuerySpec{}, fmt.Errorf("error getting stream: verify that stream exists and you are using proper credentials related to the project")
}
}
Expand Down

0 comments on commit 665bf99

Please sign in to comment.