mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-17 16:36:49 +00:00
fix: make perm.share depend on share.download
This commit is contained in:
parent
a63573b67e
commit
09a26166b4
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue