fixed issue with self service

This commit is contained in:
Roland Gruber 2017-06-12 17:49:15 +02:00
parent 6d52216a09
commit ee7aea44eb
1 changed files with 5 additions and 1 deletions

View File

@ -222,7 +222,11 @@ class courierMailAccount extends baseModule {
public function getManagedAttributes($typeId) { public function getManagedAttributes($typeId) {
$attrs = parent::getManagedAttributes($typeId); $attrs = parent::getManagedAttributes($typeId);
$typeManager = new TypeManager(); $typeManager = new TypeManager();
$modules = $typeManager->getConfiguredType($typeId)->getModules(); $type = $typeManager->getConfiguredType($typeId);
if ($type == null) {
return $attrs;
}
$modules = $type->getModules();
if ($this->isUnixDisabled($modules)) { if ($this->isUnixDisabled($modules)) {
$attrs[] = 'homeDirectory'; $attrs[] = 'homeDirectory';
} }