fix(auth): fix oauh enabled function

pull/2749/head
Chaim Lev Ari 2019-01-02 20:01:06 +02:00
parent 15b6941872
commit 81e3ace232
2 changed files with 2 additions and 2 deletions

View File

@ -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">

View File

@ -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() {