1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

changed indexer coupling

This commit is contained in:
Harvey Kandola 2017-08-02 15:58:39 +01:00
parent 562872a4a8
commit ecc94f31c9
12 changed files with 52 additions and 45 deletions

View file

@ -57,7 +57,7 @@ func (h *Handler) GetLinkCandidates(w http.ResponseWriter, r *http.Request) {
}
// permission check
if document.CanViewDocument(ctx, *h.Store, documentID) {
if !document.CanViewDocument(ctx, *h.Store, documentID) {
response.WriteForbiddenError(w)
return
}