mirror of
https://github.com/outline/outline.git
synced 2026-11-28 16:19:46 +03:00
test
This commit is contained in:
1 parent
41a18a4e85
commit
670bd862f2
1 file changed
+5
-5
@@ -22,17 +22,17 @@ export default class AuthenticationHelper {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If no team return all possible authentication providers.
|
||||
if (!team) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Guest sign-in is an exception as it does not have an authentication
|
||||
// provider using passport, instead it exists as a boolean option.
|
||||
if (config.id === "email") {
|
||||
return team?.emailSigninEnabled;
|
||||
}
|
||||
|
||||
// If no team return all possible authentication providers except email.
|
||||
if (!team) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const authProvider = find(team.authenticationProviders, {
|
||||
name: config.id,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user