fix: check download permission when sharing permission is enabled (#5875)

This commit is contained in:
Ariel Leyva 2026-04-04 03:11:21 -04:00 committed by GitHub
parent 860c19ddf5
commit 0f39bd055e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 2 deletions

View file

@ -23,6 +23,7 @@ var (
ErrSourceIsParent = errors.New("source is parent")
ErrRootUserDeletion = errors.New("the sole admin can't be deleted")
ErrCurrentPasswordIncorrect = errors.New("the current password is incorrect")
ErrShareRequiresDownload = errors.New("permission to share requires permission to download")
)
type ErrShortPassword struct {