mirror of
https://github.com/documize/community.git
synced 2025-07-18 20:59:43 +02:00
Fixed an issue with non-admin Jira connector auth
Role check should be OR and not AND.
This commit is contained in:
parent
2e443de84e
commit
c0c3ca18e2
1 changed files with 1 additions and 6 deletions
|
@ -60,12 +60,7 @@ func (h *Handler) RunSectionCommand(w http.ResponseWriter, r *http.Request) {
|
|||
// it's up to the section handler to parse if required.
|
||||
|
||||
// Permission checks
|
||||
if !permission.CanChangeDocument(ctx, *h.Store, documentID) {
|
||||
response.WriteForbiddenError(w)
|
||||
return
|
||||
}
|
||||
|
||||
if !ctx.Editor {
|
||||
if !ctx.Editor && !permission.CanChangeDocument(ctx, *h.Store, documentID) {
|
||||
response.WriteForbiddenError(w)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue