Auth: Add development manual override (#55496)

* Auth: Add development manual override

* rename to disable_sync_lock
This commit is contained in:
Jo
2022-09-20 17:48:40 +02:00
committed by GitHub
parent 0e6a8cc6ac
commit 006944a360
4 changed files with 10 additions and 3 deletions

View File

@@ -112,9 +112,10 @@ export class UserAdminPage extends PureComponent<Props> {
user?.isExternal && user?.authLabels?.some((r) => SyncedOAuthLabels.includes(r));
const isSAMLUser = user?.isExternal && user?.authLabels?.includes('SAML');
const isUserSynced =
(user?.isExternal && !(isOAuthUserWithSkippableSync || isSAMLUser)) ||
(!config.auth.OAuthSkipOrgRoleUpdateSync && isOAuthUserWithSkippableSync) ||
(!config.auth.SAMLSkipOrgRoleSync && isSAMLUser);
!config.auth.DisableSyncLock &&
((user?.isExternal && !(isOAuthUserWithSkippableSync || isSAMLUser)) ||
(!config.auth.OAuthSkipOrgRoleUpdateSync && isOAuthUserWithSkippableSync) ||
(!config.auth.SAMLSkipOrgRoleSync && isSAMLUser));
const pageNav: NavModelItem = {
text: user?.login ?? '',