Skip to content

Commit

Permalink
remove encrypted check (#1749)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 authored Feb 12, 2025
1 parent dc7dafd commit a0c1645
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions zboxcore/sdk/allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -2338,18 +2338,6 @@ func (a *Allocation) GetAuthTicket(path, filename string,
return "", errors.New("invalid_path", "Path should be valid and absolute")
}

if referenceType == fileref.FILE && refereeClientID != "" {
fileMeta, err := a.GetFileMeta(path)
if err != nil {
return "", err
}

// private sharing is only available for encrypted file
if fileMeta.EncryptedKey == "" {
return "", ErrInvalidPrivateShare
}
}

shareReq := &ShareRequest{
ClientId: a.Owner,
expirationSeconds: expiration,
Expand Down

0 comments on commit a0c1645

Please sign in to comment.