Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Nov 13, 2023
1 parent 671664d commit 5890c82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/http/services/owncloud/ocgraph/drives.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,14 @@ func generateCs3Filters(request *godata.GoDataRequest) ([]*providerpb.ListStorag
}

func (s *svc) cs3StorageSpaceToDrive(user *userpb.User, space *providerpb.StorageSpace) *libregraph.Drive {
id := url.PathEscape(space.RootInfo.Path)
drive := &libregraph.Drive{
DriveAlias: libregraph.PtrString(space.RootInfo.Path[1:]),
Id: libregraph.PtrString(space.Id.OpaqueId),
Id: &id,
Name: space.Name,
DriveType: libregraph.PtrString(space.SpaceType),
Root: &libregraph.DriveItem{
Id: libregraph.PtrString(space.Id.OpaqueId),
Id: &id,
Permissions: cs3PermissionsToLibreGraph(user, space.RootInfo.PermissionSet),
},
}
Expand Down

0 comments on commit 5890c82

Please sign in to comment.