Skip to content

Commit ad27849

Browse files
committed
ported forward from personal/rjs/trunk-7174. Still one existing test failing
- Legacy-Id: 7449
1 parent a0311b7 commit ad27849

35 files changed

Lines changed: 3775 additions & 389 deletions

ietf/group/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ def has_role(self, user, role_names):
6363
role_names = [role_names]
6464
return user.is_authenticated() and self.role_set.filter(name__in=role_names, person__user=user).exists()
6565

66+
def is_bof(self):
67+
return (self.state.slug in ["bof", "bof-conc"])
68+
6669
def get_chair(self):
6770
chair = self.role_set.filter(name__slug='chair')[:1]
6871
return chair and chair[0] or None

0 commit comments

Comments
 (0)