__does_user_have_moderation_rights.py 201 Bytes
Newer Older
1
from backend.utils import is_member
2
3
4
5
6
7
8


def does_user_have_moderation_rights(user):
    """
    TODO unit test
    """
    return user.is_staff or is_member('DRI', user) or is_member('Moderators', user)