Skip to content

Commit

Permalink
public links: return error when owner could not be resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Nov 1, 2024
1 parent a5f2cc2 commit 012461a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/auth/manager/publicshares/publicshares.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ func (m *manager) Authenticate(ctx context.Context, token, secret string) (*user
if err != nil {
return nil, nil, err
}
if getUserResponse.Status.Code != rpcv1beta1.Code_CODE_OK {
return nil, nil, errtypes.NotFound(getUserResponse.Status.Message)
}

share := publicShareResponse.GetShare()
role := authpb.Role_ROLE_VIEWER
Expand Down

0 comments on commit 012461a

Please sign in to comment.