fix: drop delete permission for deleting upload

pull/5270/head
Ramires Viana 2025-07-10 22:05:05 -03:00
parent c2c696c212
commit 9959cd1c9f
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ func tusPatchHandler() handleFunc {
func tusDeleteHandler() handleFunc {
return withUser(func(_ http.ResponseWriter, r *http.Request, d *data) (int, error) {
if r.URL.Path == "/" || !d.user.Perm.Delete {
if r.URL.Path == "/" || !d.user.Perm.Create {
return http.StatusForbidden, nil
}