adapt tests to new club roles framework

This commit is contained in:
imperosol committed 2026-05-12 09:44:28 +02:00
1 parent 74d8a374b9
commit 898ce48cc8
20 files changed
+250 -108

No files matched your search

+1 -1
View File
@@ -503,7 +503,7 @@ class WeekmailArticleCreateView(CreateView):
self.object = form.instance
form.is_valid() # Valid a first time to populate club field
m = form.instance.club.get_membership_for(request.user)
if m is None or m.role <= settings.SITH_MAXIMUM_FREE_ROLE:
if m is None or not m.role.is_board:
form.add_error(
"club",
ValidationError(