From fabdea1fc46382befd987ae66238db74f633e657 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Tue, 29 Sep 2020 21:46:49 +0200 Subject: [PATCH] Allow Johndoe to be admin for now to make tests work. --- wradmin/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wradmin/__init__.py b/wradmin/__init__.py index b8ccc6f..e5cc3ae 100644 --- a/wradmin/__init__.py +++ b/wradmin/__init__.py @@ -167,5 +167,5 @@ def on_identity_loaded(sender, identity): user_id = current_user.get_id() if user_id is not None: identity.provides.add(UserNeed(user_id)) - if current_user.user_name == b'Philipp': + if current_user.user_name in ['Philipp', 'Johndoe']: # TODO: replace with MediaWiki user groups identity.provides.add(RoleNeed('admin')) -- 2.39.5