root: update remaining paths for static files
This commit is contained in:
@ -31,5 +31,5 @@ passbook:
|
||||
footer_links:
|
||||
- name: Documentation
|
||||
href: https://passbook.beryju.org/docs/
|
||||
# - name: test
|
||||
# href: https://test
|
||||
- name: passbook Website
|
||||
href: https://passbook.beryju.org/
|
||||
|
||||
@ -27,7 +27,7 @@ class BaseEvaluator:
|
||||
|
||||
def __init__(self):
|
||||
# update passbook/policies/expression/templates/policy/expression/form.html
|
||||
# update docs/policies/expression/index.md
|
||||
# update website/docs/policies/expression.md
|
||||
self._globals = {
|
||||
"regex_match": BaseEvaluator.expr_filter_regex_match,
|
||||
"regex_replace": BaseEvaluator.expr_filter_regex_replace,
|
||||
|
||||
@ -32,7 +32,7 @@ class PolicyEvaluator(BaseEvaluator):
|
||||
|
||||
def set_policy_request(self, request: PolicyRequest):
|
||||
"""Update context based on policy request (if http request is given, update that too)"""
|
||||
# update docs/policies/expression/index.md
|
||||
# update website/docs/policies/expression.md
|
||||
self._context["pb_is_sso_flow"] = request.context.get(PLAN_CONTEXT_SSO, False)
|
||||
if request.http_request:
|
||||
self.set_http_request(request.http_request)
|
||||
@ -41,7 +41,7 @@ class PolicyEvaluator(BaseEvaluator):
|
||||
|
||||
def set_http_request(self, request: HttpRequest):
|
||||
"""Update context based on http request"""
|
||||
# update docs/policies/expression/index.md
|
||||
# update website/docs/policies/expression.md
|
||||
self._context["pb_client_ip"] = ip_address(
|
||||
get_client_ip(request) or "255.255.255.255"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user