Update cognee/modules/users/permissions/methods/get_all_user_permission_datasets.py
Co-authored-by: Boris <boris@topoteretes.com>
This commit is contained in:
parent
3710eec94f
commit
b5f94c889d
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ async def get_all_user_permission_datasets(user: User, permission_type: str) ->
|
||||||
# If the dataset id key already exists, leave the dictionary unchanged.
|
# If the dataset id key already exists, leave the dictionary unchanged.
|
||||||
unique.setdefault(dataset.id, dataset)
|
unique.setdefault(dataset.id, dataset)
|
||||||
|
|
||||||
# Filter out dataset that aren't part of the current user's tenant
|
# Filter out dataset that aren't part of the selected user's tenant
|
||||||
filtered_datasets = []
|
filtered_datasets = []
|
||||||
for dataset in list(unique.values()):
|
for dataset in list(unique.values()):
|
||||||
if dataset.tenant_id == user.tenant_id:
|
if dataset.tenant_id == user.tenant_id:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue