Skip to content

Commit

Permalink
CodeChecker authentication fixed
Browse files Browse the repository at this point in the history
If the super_user field was missing from the
config file, CodeChecker authentication failed
for all users.
  • Loading branch information
dkrupp committed Oct 18, 2024
1 parent da07652 commit 4e68442
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/server/codechecker_server/session_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ def get_db_auth_session_tokens(self, user_name):

def __is_root_user(self, user_name):
""" Return True if the given user has system permissions. """
if 'super_user' not in self.__auth_config:
return False

if self.__auth_config['super_user'] == user_name:
return True

Expand Down

0 comments on commit 4e68442

Please sign in to comment.