From: Philipp Spitzer Date: Tue, 29 Sep 2020 19:46:49 +0000 (+0200) Subject: Allow Johndoe to be admin for now to make tests work. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wradmin.git/commitdiff_plain/fabdea1fc46382befd987ae66238db74f633e657 Allow Johndoe to be admin for now to make tests work. --- 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'))