mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-24 15:24:33 +03:00
Hide system information from anyone but admins
This commit is contained in:
parent
84e4de1e7a
commit
8ced21fe86
@ -35,8 +35,10 @@ class AboutController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
public function indexAction(Request $request)
|
public function indexAction(Request $request)
|
||||||
{
|
{
|
||||||
|
$operator = $this->getOperator();
|
||||||
$page = array_merge(
|
$page = array_merge(
|
||||||
array(
|
array(
|
||||||
|
'showSystemInfo' => is_capable(CAN_ADMINISTRATE, $operator),
|
||||||
'localizations' => get_available_locales(),
|
'localizations' => get_available_locales(),
|
||||||
'phpVersion' => phpversion(),
|
'phpVersion' => phpversion(),
|
||||||
'extensions' => $this->getExtensionsInfo(),
|
'extensions' => $this->getExtensionsInfo(),
|
||||||
@ -45,7 +47,7 @@ class AboutController extends AbstractController
|
|||||||
'menuid' => 'about',
|
'menuid' => 'about',
|
||||||
'availableUpdates' => $this->getAvailableUpdates(),
|
'availableUpdates' => $this->getAvailableUpdates(),
|
||||||
),
|
),
|
||||||
prepare_menu($this->getOperator())
|
prepare_menu($operator)
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this->render('about', $page);
|
return $this->render('about', $page);
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<p>{{{l10n "Copyright © {0} Contributors of the Mibew Messenger project." "2005-2017"}}}</p>
|
<p>{{{l10n "Copyright © {0} Contributors of the Mibew Messenger project." "2005-2017"}}}</p>
|
||||||
<p>{{{l10n "For more information visit the official site of the project: <a href=\"https://mibew.org/\">https://mibew.org/</a>"}}}</p>
|
<p>{{{l10n "For more information visit the official site of the project: <a href=\"https://mibew.org/\">https://mibew.org/</a>"}}}</p>
|
||||||
|
|
||||||
|
{{#if showSystemInfo}}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<h2>{{l10n "System information"}}</h2>
|
<h2>{{l10n "System information"}}</h2>
|
||||||
@ -51,6 +52,7 @@
|
|||||||
{{l10n "There is no available updates."}}<br/><br/>
|
{{l10n "There is no available updates."}}<br/><br/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<a href="{{route "update_check"}}">{{l10n "Check for available updates"}}</a>
|
<a href="{{route "update_check"}}">{{l10n "Check for available updates"}}</a>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-footer">
|
<div class="form-footer">
|
||||||
|
Loading…
Reference in New Issue
Block a user