forked from extern/egroupware
fix typo and missing Accounts.php
This commit is contained in:
parent
cacea8fe99
commit
84579ced53
@ -1191,6 +1191,12 @@ class Accounts
|
||||
{
|
||||
$memberships[] = $primary_group;
|
||||
}
|
||||
// add a requested addtional group, eg. Teachers for smallpart
|
||||
if (!empty($GLOBALS['auto_create_acct']['add_group']) &&
|
||||
$this->get_type((int)$GLOBALS['auto_create_acct']['add_group']) === 'g')
|
||||
{
|
||||
$memberships[] = (int)$GLOBALS['auto_create_acct']['add_group'];
|
||||
}
|
||||
$data = array(
|
||||
'account_lid' => $account_lid,
|
||||
'account_type' => 'u',
|
||||
|
@ -555,9 +555,9 @@ class Saml implements BackendSSO
|
||||
// check if affiliation is configured and attribute returned by IdP
|
||||
$attr = $config['saml_affiliation'] === 'eduPersonAffiliation' ? self::eduPersonAffiliation : $config['saml_affiliation_oid'];
|
||||
if (!empty($attr) && !empty($attrs[$attr]) && !empty($config['saml_affiliation_group']) && !empty($config['saml_affiliation_values']) &&
|
||||
($gid = $GLOBALS['egw']->accounts->name2id($config['saml_affiliation_group'], 'account_id', 'g')))
|
||||
($gid = $GLOBALS['egw']->accounts->name2id($config['saml_affiliation_group'], 'account_lid', 'g')))
|
||||
{
|
||||
if (!isset($auto_create_acct) && ($accout_id = $GLOBALS['egw']->accounts->name2id($username, 'account_id', 'u')))
|
||||
if (!isset($auto_create_acct) && ($accout_id = $GLOBALS['egw']->accounts->name2id($username, 'account_lid', 'u')))
|
||||
{
|
||||
$memberships = $GLOBALS['egw']->accounts->memberships($accout_id, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user