File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -751,18 +751,18 @@ export const Testing = ({
751751 ) ;
752752 }
753753
754- const changeAllowedTestEntity = ( idp , e ) => {
755- const checked = e . target . checked ;
756- const allowedEntities = connection . allowedEntities || [ ] ;
757- if ( checked ) {
758- setConnection ( { ...connection , allowedEntities : [ ...allowedEntities , idp . entityid ] } )
759- } else {
760- setConnection ( {
761- ...connection ,
762- allowedEntities : [ ...allowedEntities . filter ( entityid => entityid !== idp . entityid ) ]
763- } )
764- }
765- } ;
754+ // const changeAllowedTestEntity = (idp, e) => {
755+ // const checked = e.target.checked;
756+ // const allowedEntities = connection.allowedEntities || [];
757+ // if (checked) {
758+ // setConnection({...connection, allowedEntities: [...allowedEntities, idp.entityid]})
759+ // } else {
760+ // setConnection({
761+ // ...connection,
762+ // allowedEntities: [...allowedEntities.filter(entityid => entityid !== idp.entityid)]
763+ // })
764+ // }
765+ // };
766766
767767 const changeAllowedEntity = options => {
768768 const iDps = config . identityProviders ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ const MyOrganization = ({refreshUser}) => {
7575 } , [ focusedId ] ) ;
7676
7777 const availableSections = useMemo ( ( ) => {
78- const isExternalUser = externalUser ;
78+ const isExternalUser = user . externalUser ;
7979 return Object . values ( sections )
8080 . filter ( s => s !== sections . delete || ( isExternalUser && ( user . superUser || isOrganizationAdmin ( user , organization ) ) ) )
8181 . filter ( s => s !== sections . contactPersons || ! isExternalUser )
You can’t perform that action at this time.
0 commit comments