Skip to content

Commit edd59ee

Browse files
committed
2 parents 451dd31 + 2cdf2c2 commit edd59ee

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

module/Administration/view/administration/home/index.phtml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,26 @@ $commit = shell_exec("git log -n 1 --pretty=format:'%s (%ci)' --abbrev-commit");
77

88
$tag = shell_exec("git describe --exact-match --tags");
99

10+
$hostname = getenv('COMPUTERNAME') ? getenv('COMPUTERNAME') : shell_exec('uname -n');
11+
1012
$hasTag = ! (substr($tag, 0, strlen("fatal")) === "fatal" || substr($tag, 0, strlen("warning")) === "warning" || empty($tag));
1113
?>
1214
<div class="container-fluid">
1315
<div class="row">
1416
<div class="col-sm-12">
1517
<p></p>
18+
<div class="panel panel-default">
19+
<div class="panel-heading">
20+
<h3 class="panel-title">Serveur</h3>
21+
</div>
22+
23+
<div class="panel-body">
24+
<p>
25+
Nom d'hôte : <em><?php echo $hostname; ?></em>
26+
</p>
27+
</div>
28+
</div>
29+
1630
<div class="panel panel-default">
1731
<div class="panel-heading">
1832
<h3 class="panel-title">Version</h3>

module/Application/src/Application/Repository/EventRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public function getEvents($userauth, $day = null, $lastmodified = null, $orderby
8484
$qb->andWhere($qb->expr()
8585
->orX($qb->expr()
8686
->neq('c.timelineconfirmed', true), $qb->expr()
87+
->neq('e.scheduled', true), $qb->expr()
8788
->andX($qb->expr()
8889
->eq('c.timelineconfirmed', true), $qb->expr()
8990
->in('e.status', array(2,3,4)), $qb->expr()

module/Core/src/Core/View/Helper/UserMenu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __invoke($color)
6262
if ($router->match($request) && $router->match($request)->getMatchedRouteName() == 'administration') {
6363
$html .= "<li><a href=\"" . $urlHelper('application') . "\">Interface OPE</a></li>";
6464
} else {
65-
if ($this->auth->isGranted('admin.centre') || $this->auth->isGranted('admin.users') || $this->auth->isGranted('admin.categories') || $this->auth->isGranted('admin.models') || $this->auth->isGranted('admin.radio')) {
65+
if ($this->auth->isGranted('admin.access') || $this->auth->isGranted('admin.centre') || $this->auth->isGranted('admin.users') || $this->auth->isGranted('admin.categories') || $this->auth->isGranted('admin.models') || $this->auth->isGranted('admin.radio')) {
6666
$html .= "<li><a href=\"" . $urlHelper('administration', array(
6767
'controller' => 'home',
6868
'action' => 'index'

0 commit comments

Comments
 (0)