Skip to content

Commit

Permalink
Implement GetPath() for the share jail root
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Jul 4, 2022
1 parent 6d40788 commit f44e9e8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,14 @@ func (s *service) GetPath(ctx context.Context, req *provider.GetPathRequest) (*p
// - getPath of every received share on the same space - needs also owner permissions -> needs machine auth
// - find the shortest root path that is a prefix of the resource path
// alternatively implement this on storageprovider - it needs to know about grants to do so

if isShareJailRoot(req.ResourceId) {
return &provider.GetPathResponse{
Status: status.NewOK(ctx),
Path: "/",
}, nil
}

return nil, gstatus.Errorf(codes.Unimplemented, "method not implemented")
}

Expand Down

0 comments on commit f44e9e8

Please sign in to comment.