def roles_delete(): role_id = request.form.get("id") role = role_service.get(role_id=role_id) role_service.delete(role_id) return u'{} Role Deleted'.format(role.name), 200
def roles(): return json_response(role_service.get(company_id=session['company_id'], user_id=session['user_id']))
def roles(): return json_response(role_service.get(company_id=session['company_id']))