mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
changed indexer coupling
This commit is contained in:
parent
562872a4a8
commit
ecc94f31c9
12 changed files with 52 additions and 45 deletions
|
@ -80,7 +80,7 @@ func (m *middleware) Authorize(w http.ResponseWriter, r *http.Request, next http
|
|||
if len(rc.OrgID) == 0 {
|
||||
dom := organization.GetRequestSubdomain(r)
|
||||
dom = m.Store.Organization.CheckDomain(rc, dom)
|
||||
org, err = m.Store.Organization.GetOrganizationByDomain(rc, dom)
|
||||
org, err = m.Store.Organization.GetOrganizationByDomain(dom)
|
||||
} else {
|
||||
org, err = m.Store.Organization.GetOrganization(rc, rc.OrgID)
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ func RegisterEndpoints(rt *env.Runtime, s *domain.Store) {
|
|||
meta := meta.Handler{Runtime: rt, Store: s}
|
||||
user := user.Handler{Runtime: rt, Store: s}
|
||||
link := link.Handler{Runtime: rt, Store: s}
|
||||
page := page.Handler{Runtime: rt, Store: s}
|
||||
page := page.Handler{Runtime: rt, Store: s, Indexer: indexer}
|
||||
space := space.Handler{Runtime: rt, Store: s}
|
||||
block := block.Handler{Runtime: rt, Store: s}
|
||||
section := section.Handler{Runtime: rt, Store: s}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue