Ultron/ultron/core/user_group_check.py

6 lines
179 B
Python
Raw Normal View History

2022-02-06 15:44:55 +01:00
def user_has_group_trainer(user):
return user.groups.filter(name='Trainer').exists()
def user_has_group_gymnast(user):
return user.groups.filter(name='Gymnast').exists()