fixed issue with self service
This commit is contained in:
parent
6d52216a09
commit
ee7aea44eb
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue