def user_has_super_roles():
    """Return whether the current belongs to superuser roles
    """
    member = api.get_current_user()
    super_roles = ["LabManager", "Manager"]
    diff = filter(lambda role: role in super_roles, member.getRoles())
    return len(diff) > 0
def user_has_super_roles ( ) : member = api . get_current_user ( ) super_roles = [ "LabManager" , "Manager" ] diff = filter ( lambda role : role in super_roles , member . getRoles ( ) ) return len ( diff ) > 0
Return whether the current belongs to superuser roles