@@ 360-363 (lines=4) @@ | ||
357 | protected function getDisplayOptions() |
|
358 | { |
|
359 | $displayOptions = isset($this->app['displayOptions']) ? $this->app['displayOptions'] : []; |
|
360 | if ($this->app['security']->isGranted(self::MANAGER_REQUIRED_ROLE)) { |
|
361 | $displayOptions['songInPreview'] = true; // force for logged-in users |
|
362 | $displayOptions['isAdmin'] = true; // force for logged-in users |
|
363 | } |
|
364 | ||
365 | return $displayOptions; |
|
366 | } |
@@ 47-50 (lines=4) @@ | ||
44 | $displayOptions['songInPreview'] = false; |
|
45 | } |
|
46 | ||
47 | if ($this->isGranted('ROLE_ADMIN')) { |
|
48 | $displayOptions['songInPreview'] = true; // force for logged-in users |
|
49 | $displayOptions['isAdmin'] = true; // force for logged-in users |
|
50 | } |
|
51 | ||
52 | // $displayOptions['upcomingCount'] = 3; |
|
53 |