diff --git a/changelog/unreleased/add-permissions-to-report.md b/changelog/unreleased/add-permissions-to-report.md new file mode 100644 index 00000000000..8e7345f7c88 --- /dev/null +++ b/changelog/unreleased/add-permissions-to-report.md @@ -0,0 +1,5 @@ +Enhancement: Add permissions to report + +The webdav REPORT endpoint only returned permissions for personal spaces and shares. Now also for project spaces. + +https://github.com/owncloud/ocis/pull/6528 diff --git a/services/search/pkg/search/service.go b/services/search/pkg/search/service.go index 9367d7e49d0..60ce7b8c73e 100644 --- a/services/search/pkg/search/service.go +++ b/services/search/pkg/search/service.go @@ -264,7 +264,7 @@ func (s *Service) searchIndex(ctx context.Context, req *searchsvc.SearchRequest, rootName = space.GetRootInfo().GetPath() permissions = space.GetRootInfo().GetPermissionSet() s.logger.Debug().Interface("grantSpace", space).Interface("mountpointRootId", mountpointRootID).Msg("searching a grant") - case "personal": + case "personal", "project": permissions = space.GetRootInfo().GetPermissionSet() }