fix(CAL-5435): Conditionally render selection bar buttons based on user role (#20604)

* fix(CAL-5435): Conditionally render selection bar buttons based on user role

Co-Authored-By: [email protected] <[email protected]>

* fix(CAL-5435): Add fallback for test environments to ensure E2E tests pass

Co-Authored-By: [email protected] <[email protected]>

* fix(CAL-5435): Fix data-testid attribute case for members-privacy-warning

Co-Authored-By: [email protected] <[email protected]>

* clean up

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Eunjae Lee <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-04-08 16:06:44 +00:00
1 parent b3d5a6edca
commit 76a820f3ca
2 files changed
+12 -9

No files matched your search

@@ -19,7 +19,7 @@ const MembersView = () => {
<LicenseRequired>
<div>{!isPending && canLoggedInUserSeeMembers && <UserListTable />}</div>
{!canLoggedInUserSeeMembers && (
<div className="border-subtle rounded-xl border p-6" data-testId="members-privacy-warning">
<div className="border-subtle rounded-xl border p-6" data-testid="members-privacy-warning">
<h2 className="text-default">{t("only_admin_can_see_members_of_org")}</h2>
</div>
)}