Skip to content

Commit

Permalink
update charmhub beta (#1670)
Browse files Browse the repository at this point in the history
* update charmhub beta

* fix failing test

* update dependencies

* update store-base version

* update store-base
  • Loading branch information
codeEmpress1 authored Sep 28, 2023
1 parent 9a8378f commit 9f201a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def login_required(func):
@functools.wraps(func)
def is_user_logged_in(*args, **kwargs):
if not authentication.is_authenticated(flask.session):
if "beta" in flask.request.url:
return flask.redirect("/login?next=/beta" + flask.request.path)
return flask.redirect("/login?next=" + flask.request.path)

return func(*args, **kwargs)
Expand Down
1 change: 1 addition & 0 deletions webapp_beta/beta_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from canonicalwebteam.candid import CandidClient

from webapp_beta.charmhub_bp import charmhub_bp
from webapp.decorators import login_required
from webapp.handlers import charmhub_utility_processor
from webapp.decorators import login_required

Expand Down

0 comments on commit 9f201a4

Please sign in to comment.