This commit is contained in:
@@ -103,5 +103,20 @@ class User(UserMixin, db.Model):
|
||||
def can_manage_this_org_team(self, org_team):
|
||||
return False
|
||||
|
||||
def can_manage_team_matches(self, org_team):
|
||||
"""Whether the user may manage this team's matches and practices.
|
||||
|
||||
Broader than :meth:`can_manage_this_org_team`: a player named as the
|
||||
team's responsible joins whoever administers it. The rule itself
|
||||
lives in ``app.permissions``.
|
||||
"""
|
||||
from app.permissions import can_manage_team_matches
|
||||
|
||||
return can_manage_team_matches(self, org_team)
|
||||
|
||||
def can_designate_team_representative(self):
|
||||
"""Whether the user may name a team's responsible. President only."""
|
||||
return False
|
||||
|
||||
def get_visible_tryouts(self):
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user