mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-04 11:19:39 -06:00
list ocm shares in sharedByMe
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
Bugfix: add missing properties to when listing ocm shares
|
||||
Bugfix: fix listing ocm shares
|
||||
|
||||
The libre graph API now returns an etag, the role and the creation time for ocm shares.
|
||||
It also includes ocm shares in the sharedByMe endpoint.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/9925
|
||||
https://github.com/owncloud/ocis/pull/9920
|
||||
|
||||
@@ -25,6 +25,14 @@ func (g Graph) GetSharedByMe(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if g.config.IncludeOCMSharees {
|
||||
driveItems, err = g.listOCMShares(ctx, nil, driveItems)
|
||||
if err != nil {
|
||||
errorcode.RenderError(w, r, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
driveItems, err = g.listPublicShares(ctx, nil, driveItems)
|
||||
if err != nil {
|
||||
errorcode.RenderError(w, r, err)
|
||||
|
||||
Reference in New Issue
Block a user