public function find($mode = 'all', $options = null) { $result = parent::find($mode, $options); if ($this->app->system->application->isAdmin()) { if (!$result) { return false; } if (is_array($result)) { foreach ($result as $name => $application) { if (!$application->canManage()) { unset($result[$name]); } } } else { if (!$result->canManage()) { return false; } } } return $result; }