TVD: Fix filtering without project id
the plugin filtering method should support the case where the context does not have any project id, and skip the filterring Change-Id: I35f7eb508891d1b930867b91e98b7fb6a276eeac
This commit is contained in:
parent
da500f1e84
commit
8be988e49d
@ -62,9 +62,11 @@ def filter_plugins(cls):
|
||||
"""Run the original get-list method, and filter the results
|
||||
by the project id of the context
|
||||
"""
|
||||
req_p = get_project_mapping(context, context.project_id)
|
||||
entries = orig_method(self, context, filters=filters,
|
||||
fields=fields)
|
||||
if not context.project_id:
|
||||
return entries
|
||||
req_p = get_project_mapping(context, context.project_id)
|
||||
for entry in entries[:]:
|
||||
p = get_project_mapping(context, entry['tenant_id'])
|
||||
if p != req_p:
|
||||
|
Loading…
x
Reference in New Issue
Block a user