mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
fixed the error translation from the statusCodeError type into a corresponding graph api Error representation
This commit is contained in:
@@ -55,7 +55,7 @@ func (g BaseGraphService) getSpaceRootPermissions(ctx context.Context, spaceID *
|
||||
}
|
||||
space, err := utils.GetSpace(ctx, spaceID.GetOpaqueId(), gatewayClient)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, errorcode.FromUtilsStatusCodeError(err)
|
||||
}
|
||||
|
||||
return g.cs3SpacePermissionsToLibreGraph(ctx, space, APIVersion_1_Beta_1), nil
|
||||
|
||||
Reference in New Issue
Block a user