diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-04 12:46:24 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-04 12:46:24 -0600 |
| commit | 093c2a626b41f920e6c9fa8efbc6e497761cba10 (patch) | |
| tree | 5187f7fffb7daa6ab57ccbc7e12e4407cece4a9b /src/authorization | |
| parent | f8549af8d64b551449957c3004b74ed0bf69c593 (diff) | |
feat: allow access to sparkle homepage
Diffstat (limited to 'src/authorization')
| -rw-r--r-- | src/authorization/cedar_authorizer.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/authorization/cedar_authorizer.rs b/src/authorization/cedar_authorizer.rs index fd27565d..163f5b83 100644 --- a/src/authorization/cedar_authorizer.rs +++ b/src/authorization/cedar_authorizer.rs @@ -70,8 +70,10 @@ impl Authorizer for CedarAuthorizer { None => return false, }; - if http_request.path == "/" { - return true; + if http_request.host == "sparkle.staging.runway.gitlab.net" { + if http_request.method == "GET" && http_request.path == "/" { + return true; + } } let headers = match request |
