Skip to content

Commit

Permalink
Merge branch 'main' into fix-rolebased-ui-rendenring
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoening authored Oct 27, 2024
2 parents fb7c970 + 8914e47 commit 8f1a1d4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
9 changes: 5 additions & 4 deletions flexmeasures/ui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ def basic_admin_auth():
return

# Logged-in users can view queues on the demo server, but only admins can view them on other servers
if app.config.get("FLEXMEASURES_MODE", "") == "demo":
rq_dashboard.blueprint.before_request(basic_auth)
else:
rq_dashboard.blueprint.before_request(basic_admin_auth)
if app.config.get("FLEXMEASURES_ENV") != "documentation":
if app.config.get("FLEXMEASURES_MODE", "") == "demo":
rq_dashboard.blueprint.before_request(basic_auth)
else:
rq_dashboard.blueprint.before_request(basic_admin_auth)

# To set template variables, use set_global_template_variables in app.py
app.register_blueprint(rq_dashboard.blueprint, url_prefix="/tasks")
Expand Down
4 changes: 1 addition & 3 deletions requirements/3.10/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ six==1.16.0
# sphinxcontrib-httpdomain
snowballstemmer==2.2.0
# via sphinx
sphinx==7.4.7
sphinx==7.3.7
# via
# -r requirements/docs.in
# sphinx-copybutton
Expand Down Expand Up @@ -88,8 +88,6 @@ sphinxcontrib-qthelp==2.0.0
# via sphinx
sphinxcontrib-serializinghtml==2.0.0
# via sphinx
tomli==2.0.1
# via sphinx
urllib3==2.2.3
# via
# -c requirements/3.10/app.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/3.11/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ six==1.16.0
# sphinxcontrib-httpdomain
snowballstemmer==2.2.0
# via sphinx
sphinx==7.4.7
sphinx==7.3.7
# via
# -r requirements/docs.in
# sphinx-copybutton
Expand Down
4 changes: 1 addition & 3 deletions requirements/3.9/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ six==1.16.0
# sphinxcontrib-httpdomain
snowballstemmer==2.2.0
# via sphinx
sphinx==7.4.7
sphinx==7.3.7
# via
# -r requirements/docs.in
# sphinx-copybutton
Expand Down Expand Up @@ -92,8 +92,6 @@ sphinxcontrib-qthelp==2.0.0
# via sphinx
sphinxcontrib-serializinghtml==2.0.0
# via sphinx
tomli==2.0.1
# via sphinx
urllib3==2.2.3
# via
# -c requirements/3.9/app.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/docs.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sphinx
sphinx!=7.4.*
sphinx-rtd-theme >= 1.2
sphinxcontrib.httpdomain
sphinx_fontawesome
Expand Down

0 comments on commit 8f1a1d4

Please sign in to comment.