mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Fix regression for downloading certain binary attachments
This commit is contained in:
parent
0e6f2f1f5e
commit
8970a21b58
6 changed files with 1065 additions and 1065 deletions
|
@ -518,7 +518,7 @@ func (h *Handler) Update(w http.ResponseWriter, r *http.Request) {
|
|||
sp.RefID = spaceID
|
||||
|
||||
// Check permissions (either Documize admin OR space owner/manager).
|
||||
canManage := perm.CanViewSpace(ctx, *h.Store, spaceID)
|
||||
canManage := perm.CanManageSpace(ctx, *h.Store, spaceID)
|
||||
if !canManage && !ctx.Administrator {
|
||||
response.WriteForbiddenError(w)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue