mirror of https://github.com/portainer/portainer
fix(auth): fix oauh enabled function
parent
15b6941872
commit
81e3ace232
|
@ -317,7 +317,7 @@
|
|||
<!-- !group-search-settings -->
|
||||
</div>
|
||||
|
||||
<oauth-settings ng-if="settings.AuthenticationMethod === 3" settings="OAuthSettings"></oauth-settings>
|
||||
<oauth-settings ng-if="isOauthEnabled()" settings="OAuthSettings"></oauth-settings>
|
||||
|
||||
<!-- actions -->
|
||||
<div class="form-group">
|
||||
|
|
|
@ -15,7 +15,7 @@ function ($q, $scope, Notifications, SettingsService, FileUploadService) {
|
|||
};
|
||||
|
||||
$scope.isOauthEnabled = function isOauthEnabled() {
|
||||
return $scope.settings.AuthenticationMethod === 3;
|
||||
return $scope.settings && $scope.settings.AuthenticationMethod === 3;
|
||||
};
|
||||
|
||||
$scope.addSearchConfiguration = function() {
|
||||
|
|
Loading…
Reference in New Issue