fix: add missing return in protected note create handler #46
1 changed files with 2 additions and 0 deletions
|
@ -147,10 +147,12 @@ func (h *CreateNoteWithFormHandler) ServeHTTP(w http.ResponseWriter, r *http.Req
|
||||||
|
|
||||||
if !h.PageData.AllowNoEncryption && noEncryption != "" {
|
if !h.PageData.AllowNoEncryption && noEncryption != "" {
|
||||||
h.WebError(w, logger, ErrEncryptionRequired, nil)
|
h.WebError(w, logger, ErrEncryptionRequired, nil)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !h.PageData.AllowClientEncryptionKey && encryptionKey != "" {
|
if !h.PageData.AllowClientEncryptionKey && encryptionKey != "" {
|
||||||
h.WebError(w, logger, ErrClientEncryptionKeyNotAllowed, nil)
|
h.WebError(w, logger, ErrClientEncryptionKeyNotAllowed, nil)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !h.PageData.AllowClientEncryptionKey && encryptionKey == "" && noEncryption == "" {
|
if !h.PageData.AllowClientEncryptionKey && encryptionKey == "" && noEncryption == "" {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue