Commit f2bc440f authored by Côme Chilliet's avatar Côme Chilliet

Merge branch '5980-management-should-be-a-bit-more-flexible' into '1.4-dev'

Resolve "Management should be a bit more flexible"

See merge request fusiondirectory/fd!579
parents 07a634bf a38b113d
......@@ -543,8 +543,8 @@ class simpleTabs
{
if (isset($this->by_object[$tab]) && ($this->by_object[$tab]->is_account || $this->by_object[$tab]->ignore_account)) {
return $this->by_object[$tab];
} elseif (is_subclass_of($tab, 'simpleService') && isset($this->by_object['servicesManagement']->plugins[$tab]) && $this->by_object['servicesManagement']->plugins[$tab]->is_account) {
return $this->by_object['servicesManagement']->plugins[$tab];
} elseif (is_subclass_of($tab, 'simpleService') && isset($this->by_object['servicesManagement'])) {
return $this->by_object['servicesManagement']->getServiceObject($tab);
} else {
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment