def _get_role_from_js(role):
    roles = {
        'owner': ROLE_OWNER,
        'viewer': ROLE_VIEWER,
        'member': ROLE_MEMBER,
    }
    return roles[role]
return the OrganizationUser role_level from the JS friendly role name
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/views/accounts.py/_get_role_from_js