Skip to content

Commit

Permalink
return permissions also for project spaces (#6528)
Browse files Browse the repository at this point in the history
Signed-off-by: jkoberg <jkoberg@owncloud.com>
  • Loading branch information
kobergj authored and fschade committed Jul 10, 2023
1 parent 1cfe00f commit 93aaef5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/add-permissions-to-report.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion services/search/pkg/search/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 93aaef5

Please sign in to comment.