

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

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/api/fwaas.py policy_list_for_tenant/VarMisuse@32/130 `kwargs`->`tenant_id`