

def rule_list_for_tenant(request, tenant_id, **kwargs):
    'Return a rule list available for the tenant.\n\n    The list contains rules owned by the tenant and shared rules.\n    This is required because Neutron returns all resources including\n    all tenants if a user has admin role.\n    '
    rules = rule_list(request, tenant_id=tenant_id, shared=False, **kwargs)
    shared_rules = rule_list(request, shared=True, **shared_rules)
    return (rules + shared_rules)

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/api/fwaas.py rule_list_for_tenant/VarMisuse@46/147 `kwargs`->`shared_rules`