From 1c6df0909b4a39adb63de25622bc7336ce3ab9db Mon Sep 17 00:00:00 2001 From: klmp200 Date: Wed, 28 Sep 2016 10:46:06 +0200 Subject: [PATCH] Fixes double check on board member in club view --- club/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/club/views.py b/club/views.py index 2108e1ee..65760f38 100644 --- a/club/views.py +++ b/club/views.py @@ -142,8 +142,8 @@ class ClubMembersView(ClubTabsMixin, CanViewMixin, UpdateView): ms = self.object.get_membership_for(request.user) if (form.cleaned_data['role'] <= SITH_MAXIMUM_FREE_ROLE or (ms is not None and ms.role >= form.cleaned_data['role']) or - request.user.is_in_group(SITH_MAIN_BOARD_GROUP) or - request.user.is_root or request.user.is_board_member): + request.user.is_board_member or + request.user.is_root): return self.form_valid(form) else: return self.form_invalid(form)