Skip to content

Commit c5f8561

Browse files
authored
further conditional verifications (#2648)
1 parent 529ce88 commit c5f8561

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mslib/mscolab/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,13 @@ def create_or_update_idp_user(email, username, token, authentication_backend):
236236

237237

238238
@APP.route('/')
239+
@conditional_decorator(auth.login_required, mscolab_settings.__dict__.get('enable_basic_http_authentication', False))
239240
def home():
240241
return render_template("/index.html")
241242

242243

243244
@APP.route("/status")
245+
@conditional_decorator(auth.login_required, mscolab_settings.__dict__.get('enable_basic_http_authentication', False))
244246
def hello():
245247
if request.authorization is not None:
246248
if mscolab_settings.__dict__.get('enable_basic_http_authentication', False):

0 commit comments

Comments
 (0)