Skip to content

Commit 42074b5

Browse files
dkruppbruntib
authored andcommitted
CodeChecker authentication fixed
If the super_user field was missing from the config file, CodeChecker authentication failed for all users.
1 parent af64181 commit 42074b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

web/server/codechecker_server/session_manager.py

+3
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ def get_db_auth_session_tokens(self, user_name):
539539

540540
def __is_root_user(self, user_name):
541541
""" Return True if the given user has system permissions. """
542+
if 'super_user' not in self.__auth_config:
543+
return False
544+
542545
if self.__auth_config['super_user'] == user_name:
543546
return True
544547

0 commit comments

Comments
 (0)