Skip to content

Commit

Permalink
Stop gap!
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed May 8, 2023
1 parent d1eacc5 commit c466de2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/grpc/services/ocmshareprovider/ocmshareprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"context"
"fmt"
"net/url"
"path/filepath"
"strings"
"text/template"
"time"
Expand Down Expand Up @@ -266,7 +265,7 @@ func (s *service) CreateOCMShare(ctx context.Context, req *ocm.CreateOCMShareReq

ocmshare := &ocm.Share{
Token: tkn,
Name: filepath.Base(info.Path),
Name: req.ResourceId.OpaqueId[len("fileid-/home"):],
ResourceId: req.ResourceId,
Grantee: req.Grantee,
ShareType: ocm.ShareType_SHARE_TYPE_USER,
Expand Down

0 comments on commit c466de2

Please sign in to comment.