__does_user_have_moderation_rights.py 205 Bytes
Newer Older
Florent Chehab's avatar
Florent Chehab committed
1
from backend_app.utils import is_member
2
3
4
5
6
7


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