|
@@ -21,6 +21,9 @@ class HomeController extends Controller
|
21
|
21
|
public function indexAction()
|
22
|
22
|
{
|
23
|
23
|
$search_object = $this->getElementSearcher();
|
|
24
|
+ $user = $this->getUser(true, array('join' => array(
|
|
25
|
+ 'groups_owned'
|
|
26
|
+ )), true);
|
24
|
27
|
|
25
|
28
|
$search_form = $this->createForm(
|
26
|
29
|
new ElementSearchForm(),
|
|
@@ -35,7 +38,7 @@ class HomeController extends Controller
|
35
|
38
|
array(),
|
36
|
39
|
array(
|
37
|
40
|
'tags' => $tags,
|
38
|
|
- 'groups' => $this->getGroupsArray(),
|
|
41
|
+ 'groups' => $user->getGroupsOwnedArray(),
|
39
|
42
|
)
|
40
|
43
|
);
|
41
|
44
|
|