Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nlplab/brat
Browse files Browse the repository at this point in the history
  • Loading branch information
amadanmath committed Oct 4, 2021
2 parents c667cd1 + 23f8ffb commit 44ecd82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from os.path import join as path_join
from os.path import abspath, normpath

from config import DATA_DIR
from config import DATA_DIR, USER_PASSWORD

from annlog import log_annotation
from annotator import (create_arc, create_span, delete_arc, delete_span,
Expand Down Expand Up @@ -256,7 +256,7 @@ def dispatch(http_args, client_ip, client_hostname):
raise DirectorySecurityError(http_args['collection'])

# Make sure that we are authenticated if we are to do certain actions
if action in REQUIRES_AUTHENTICATION:
if action in REQUIRES_AUTHENTICATION and USER_PASSWORD:
try:
user = get_session()['user']
except KeyError:
Expand Down

0 comments on commit 44ecd82

Please sign in to comment.