Add managed groups to auth method JUST if is type oidc. Within auth method, show the managed groups tabs JUST if type is oidc

This commit is contained in:
Carlos Alcaide Corvo committed 2021-11-10 07:47:51 -08:00
1 parent b7bf44b997
commit f8bb37e5af
4 files changed
+12 -7

No files matched your search

+3 -1
View File
@@ -34,7 +34,9 @@ export default factory.extend({
user.update({ accountIds: [id] });
});
server.createList('managed-group', 2, { scope, authMethod });
if (type === 'oidc') {
server.createList('managed-group', 2, { scope, authMethod });
}
},
}),
});
+1 -1
View File
@@ -22,7 +22,7 @@ export default function (server) {
// Auth
const globalAuthMethods = server.createList(
'auth-method',
1,
4,
{ scope: globalScope },
'withAccountsAndUsersAndManagedGroups'
);