diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-04-30 09:35:13 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-05-11 10:28:42 +0300 |
commit | df52e3d3f98186ef29e912320bbfdacb768ad7c8 (patch) | |
tree | db0108cc56a23a4918afca587957e0bf9847421d /internal/domain | |
parent | 8ea4cb76586c0841456c5973168cd8451f6c6c0a (diff) |
Fail if disk is disabled
Return disk disabled error
Remove useLegacyStorage leftovers
Fix run process
Diffstat (limited to 'internal/domain')
-rw-r--r-- | internal/domain/domain.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/domain/domain.go b/internal/domain/domain.go index 636b1bbd..c5b2ec7b 100644 --- a/internal/domain/domain.go +++ b/internal/domain/domain.go @@ -102,13 +102,13 @@ func (d *Domain) GetProjectID(r *http.Request) uint64 { } // HasLookupPath figures out if the project exists that the user tries to access -func (d *Domain) HasLookupPath(r *http.Request) bool { +func (d *Domain) HasLookupPath(r *http.Request) error { if d == nil { - return false + return ErrDomainDoesNotExist } - _, err := d.GetLookupPath(r) - return err == nil + _, err := d.GetLookupPath(r) + return err } // EnsureCertificate parses the PEM-encoded certificate for the domain |