fix: hide environments that users does not have read access too

This commit is contained in:
Scott Wilson
2024-09-14 06:50:45 -07:00
parent 8bab6d87bb
commit 8578208f2d
5 changed files with 34 additions and 11 deletions
@@ -56,7 +56,7 @@ import { IdentityModal } from "./components/IdentityModal";
import { IdentityRoleForm } from "./components/IdentityRoleForm";
const MAX_ROLES_TO_BE_SHOWN_IN_TABLE = 2;
const INIT_PER_PAGE = 10;
const INIT_PER_PAGE = 50;
const formatRoleName = (role: string, customRoleName?: string) => {
if (role === ProjectMembershipRole.Custom) return customRoleName;
if (role === ProjectMembershipRole.Member) return "Developer";