From fee4229af9a622d679f91f99a014a8f3a3e27360 Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Tue, 12 Dec 2023 12:13:01 +0530 Subject: [PATCH] Specify datasets --- funnel/views/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funnel/views/account.py b/funnel/views/account.py index 901308975..283534470 100644 --- a/funnel/views/account.py +++ b/funnel/views/account.py @@ -177,7 +177,7 @@ def recent_organization_memberships( def organizations_as_member(obj: Account) -> list[RoleAccessProxy[Account]]: """Return organizations that the user has a membership in.""" return [ - acc.access_for(actor=obj) + acc.access_for(actor=obj, datasets=('primary', 'related')) for acc in Account.query.filter( Account.name_in(app.config['FEATURED_ACCOUNTS']) ).all()