Scheduling infrastructure for absolutely everyone.
feat: restrict attributes tab to admin/owners only (CAL-4852) (#20603)
devin-ai-integration[bot]4753bd785ae1
diff --git a/apps/web/app/(use-page-wrapper)/settings/(settings-layout)/SettingsLayoutAppDirClient.tsx b/apps/web/app/(use-page-wrapper)/settings/(settings-layout)/SettingsLayoutAppDirClient.tsxindex 32d576124b2..4e356debd43 100644--- a/apps/web/app/(use-page-wrapper)/settings/(settings-layout)/SettingsLayoutAppDirClient.tsx+++ b/apps/web/app/(use-page-wrapper)/settings/(settings-layout)/SettingsLayoutAppDirClient.tsx@@ -199,9 +199,7 @@ const useTabs = ({ isDelegationCredentialEnabled }: { isDelegationCredentialEnab(child) => isOrgAdminOrOwner || !organizationAdminKeys.includes(child.name));- // TODO: figure out feature flag as it doesnt cause a re-render of the component when loaded.- // You have to refresh the page to see the changes.- if (true) {+ if (isOrgAdminOrOwner) {newArray.splice(4, 0, {name: "attributes",href: "/settings/organizations/attributes",