Skip to content

Commit

Permalink
Merge pull request #4369 from dkrupp/superadmin_fix
Browse files Browse the repository at this point in the history
CodeChecker authentication fixed
  • Loading branch information
bruntib authored Oct 18, 2024
2 parents da07652 + 4e68442 commit 4234fb7
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 4234fb7

Please sign in to comment.