mirror of
https://github.com/documize/community.git
synced 2025-07-26 00:29:47 +02:00
Organization store test
This commit is contained in:
parent
2386dcbd83
commit
eae1a9a429
2 changed files with 143 additions and 1 deletions
|
@ -77,7 +77,7 @@ func (s Scope) GetOrganization(ctx domain.RequestContext, id string) (org org.Or
|
|||
}
|
||||
|
||||
// GetOrganizationByDomain returns the organization matching a given URL subdomain.
|
||||
// No context is required because user might no be authenticated yet.
|
||||
// No context is required because user might not be authenticated yet.
|
||||
func (s Scope) GetOrganizationByDomain(subdomain string) (o org.Organization, err error) {
|
||||
err = nil
|
||||
subdomain = strings.TrimSpace(strings.ToLower(subdomain))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue