mirror of
https://github.com/ae-utbm/sith.git
synced 2026-03-22 11:35:06 +00:00
adapt tests to new club roles framework
This commit is contained in:
@@ -504,7 +504,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(
|
||||
|
||||
Reference in New Issue
Block a user