fix: make perm.share depend on share.download

This commit is contained in:
Henrique Dias committed 2026-03-14 08:31:55 +01:00
1 parent a63573b67e
commit 09a26166b4
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ import (
func withPermShare(fn handleFunc) handleFunc {
return withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) {
if !d.user.Perm.Share {
if !d.user.Perm.Share || !d.user.Perm.Download {
return http.StatusForbidden, nil
}