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:
Björn Schiessle 2018-03-15 16:19:24 +01:00
parent 9bf0d3eb3d
commit 742ae5e80d
No known key found for this signature in database
GPG key ID: 2378A753E2BF04F6

View file

@ -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;
}