File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,11 @@ No action is required from you at this time.
597597 entraIdToken ,
598598 fastify . environmentConfig . EntraServicePrincipalId ,
599599 )
600- ) . filter ( ( x ) => ! genericConfig . ProtectedEntraIDGroups . includes ( x . id ) ) ;
600+ ) . filter (
601+ ( x ) =>
602+ ! genericConfig . ProtectedEntraIDGroups . includes ( x . id ) &&
603+ x . id !== fastify . environmentConfig . PaidMemberGroupId ,
604+ ) ;
601605 request . log . debug (
602606 "Got manageable groups from Entra ID, setting to cache." ,
603607 ) ;
Original file line number Diff line number Diff line change 77} from "../../src/common/types/iam.js" ;
88import { allAppRoles , AppRoles } from "../../src/common/roles.js" ;
99import { getBaseEndpoint } from "./utils.js" ;
10- import { genericConfig } from "../../src/common/config.js" ;
10+ import { environmentConfig , genericConfig } from "../../src/common/config.js" ;
1111
1212const baseEndpoint = getBaseEndpoint ( ) ;
1313test ( "getting groups" , async ( ) => {
@@ -28,6 +28,9 @@ test("getting groups", async () => {
2828 expect ( item [ "displayName" ] . length ) . greaterThan ( 0 ) ;
2929 expect ( item [ "id" ] . length ) . greaterThan ( 0 ) ;
3030 expect ( genericConfig . ProtectedEntraIDGroups ) . not . toContain ( item [ "id" ] ) ;
31+ expect ( genericConfig . ProtectedEntraIDGroups ) . not . toStrictEqual (
32+ environmentConfig [ "dev" ] . PaidMemberGroupId ,
33+ ) ;
3134 }
3235} ) ;
3336
You can’t perform that action at this time.
0 commit comments