File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ function simplesamlphp_auth_init() {
310
310
$strAllwDefLogUsers = variable_get('simplesamlphp_auth_allowdefaultloginusers', '');
311
311
$arrAllwDefLogUsers = array();
312
312
// See if we limit this privilege to specified roles.
313
- $arrAllwDefLogRoles = variable_get('simplesamlphp_auth_allowdefaultloginroles', FALSE );
313
+ $arrAllwDefLogRoles = variable_get('simplesamlphp_auth_allowdefaultloginroles', array() );
314
314
315
315
// If user IDs or roles are specified, we let them in, but everyone else gets logged out.
316
316
if (drupal_strlen($strAllwDefLogUsers) || $arrAllwDefLogRoles) {
@@ -559,7 +559,7 @@ function simplesamlphp_auth_settings() {
559
559
'#options' => $roles,
560
560
'#multiple' => TRUE,
561
561
'#title' => t('Which ROLES should be allowed to login with local accounts?'),
562
- '#default_value' => variable_get('simplesamlphp_auth_allowdefaultloginroles', '' ),
562
+ '#default_value' => variable_get('simplesamlphp_auth_allowdefaultloginroles', array() ),
563
563
'#description' => t('Roles that should be allowed to login without simpleSAMLphp. Examples are dev/admin roles or guest roles.'),
564
564
);
565
565
$form['simplesamlphp_auth_grp_auth']['simplesamlphp_auth_allowdefaultloginusers'] = array(
You can’t perform that action at this time.
0 commit comments