mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-05 02:23:42 +02:00
set quota to 'default' if no quota parameter is given or quota was set to ''
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
9bf0d3eb3d
commit
742ae5e80d
|
@ -457,6 +457,9 @@ class UserBackend implements IApacheBackend, UserInterface, IUserBackend {
|
|||
}
|
||||
try {
|
||||
$newQuota = $this->getAttributeValue('saml-attribute-mapping-quota_mapping', $attributes);
|
||||
if ($newQuota === '') {
|
||||
$newQuota = 'default';
|
||||
}
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
$newQuota = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue