Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/SAMLSettings.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/SAMLSettings.php b/lib/SAMLSettings.php
index 3e287eab..be0f9ffc 100644
--- a/lib/SAMLSettings.php
+++ b/lib/SAMLSettings.php
@@ -80,8 +80,9 @@ class SAMLSettings {
* @return bool
*/
public function allowMultipleUserBackEnds() {
+ $type = $this->config->getAppValue('user_saml', 'type');
$setting = $this->config->getAppValue('user_saml', 'general-allow_multiple_user_back_ends', '0');
- return $setting === '1';
+ return ($setting === '1' && $type === 'saml');
}
/**