diff --git a/changelog/unreleased/grants-share-perms.md b/changelog/unreleased/grants-share-perms.md new file mode 100644 index 00000000000..3771706ea39 --- /dev/null +++ b/changelog/unreleased/grants-share-perms.md @@ -0,0 +1,3 @@ +Bugfix: Update checks for setting sharing permissions from EOS grants + +https://github.com/cs3org/reva/pull/2153 \ No newline at end of file diff --git a/pkg/cbox/share/sql/sql.go b/pkg/cbox/share/sql/sql.go index 7ab01b26d7c..0987aa711bb 100644 --- a/pkg/cbox/share/sql/sql.go +++ b/pkg/cbox/share/sql/sql.go @@ -531,7 +531,7 @@ func translateFilters(filters []*collaboration.Filter) (string, []interface{}, e case collaboration.Filter_TYPE_RESOURCE_ID: filterQuery += "(" for i, f := range filters { - filterQuery += "(fileid_prefix =? AND item_source=?" + filterQuery += "(fileid_prefix =? AND item_source=?)" params = append(params, f.GetResourceId().StorageId, f.GetResourceId().OpaqueId) if i != len(filters)-1 {