Skip to content

Commit

Permalink
Merge pull request #13335 from steverydz/remove-dead-link
Browse files Browse the repository at this point in the history
Remove dead link to jaas.ai/experts
  • Loading branch information
steverydz authored Nov 7, 2023
2 parents 6c4f612 + a88572d commit ecbe17b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion templates/templates/navigation-enterprise-h.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ <h4 class="p-muted-heading--small">Consulting</h4>
<ul class="p-inline-list--middot is-x-dense">
<li class="p-inline-list__item"><a href="/openstack/consulting">OpenStack</a></li>
<li class="p-inline-list__item"><a href="/kubernetes">Kubernetes</a></li>
<li class="p-inline-list__item"><a href="https://jaas.ai/experts" title="Visit our Juju experts - external site">Juju experts</a></li>
<li class="p-inline-list__item"><a href="/ai/services">MLOps</a></li>
</ul>
</div>
Expand Down
7 changes: 3 additions & 4 deletions webapp/shop/cred/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,9 @@ def cred_assessments(trueability_api, **_):
@shop_decorator(area="cred", permission="user", response="html")
def cred_exam(trueability_api, **_):
email = flask.session["openid"]["email"].lower()
if (
os.getenv("CREDENTIALS_CONFIDENTIALITY_ENABLED")
and not has_filed_confidentiality_agreement(email)
):
if os.getenv(
"CREDENTIALS_CONFIDENTIALITY_ENABLED"
) and not has_filed_confidentiality_agreement(email):
return flask.render_template("credentials/exam-no-agreement.html"), 403

assessment_id = flask.request.args.get("id")
Expand Down

0 comments on commit ecbe17b

Please sign in to comment.