return permissions also for project spaces (#6528)

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
kobergj
2023-06-14 16:52:52 +02:00
committed by GitHub
parent 68fb5b4d50
commit 384488b8c7
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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()
}