From 5377be160db7ea0d210af5d048d1a8cb4fd7ea44 Mon Sep 17 00:00:00 2001 From: OpenShift Cherrypick Robot Date: Tue, 15 Oct 2024 19:52:48 +0200 Subject: [PATCH] [redhat-3.12] bug: fixing NaN value error for quota displayed on member org page (PROJQUAY-6465) (#3329) bug: fixing NaN value error for quota displayed on member org page (PROJQUAY-6465) --------- Co-authored-by: Shubhra Deshpande --- endpoints/api/organization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/api/organization.py b/endpoints/api/organization.py index 043c56bbb..5300a813e 100644 --- a/endpoints/api/organization.py +++ b/endpoints/api/organization.py @@ -106,11 +106,11 @@ def org_view(o, teams): view["tag_expiration_s"] = o.removed_tag_expiration_s view["is_free_account"] = o.stripe_id is None + if is_admin or is_member: if features.QUOTA_MANAGEMENT and features.EDIT_QUOTA: quotas = model.namespacequota.get_namespace_quota_list(o.username) view["quotas"] = [quota_view(quota) for quota in quotas] if quotas else [] view["quota_report"] = model.namespacequota.get_quota_for_view(o.username) - return view