From 665bf99273c6e8eaf6e73933b5aa0c74ed698325 Mon Sep 17 00:00:00 2001 From: gioelecerati <50955448+gioelecerati@users.noreply.github.com> Date: Fri, 30 Aug 2024 17:40:10 +0200 Subject: [PATCH] data: views: fix streams by project filter (#197) --- views/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/client.go b/views/client.go index fab6eb7..fcc29b6 100644 --- a/views/client.go +++ b/views/client.go @@ -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") } }