1
0
Fork 0
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:
HarveyKandola 2019-11-14 17:38:53 +00:00
parent 0e6f2f1f5e
commit 8970a21b58
6 changed files with 1065 additions and 1065 deletions

View file

@ -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