feat: restrict attributes tab to admin/owners only (CAL-4852) (#20603)

This commit is contained in:
devin-ai-integration[bot]
2025-04-08 11:26:01 -04:00
committed by GitHub
parent 1f634b7ca0
commit 4753bd785a
@@ -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",