Only allow show zones for System::View permission
This commit is contained in:
parent
ba00bee4b8
commit
1ae1a89abf
|
@ -154,14 +154,16 @@ echo getNavBarHTML();
|
||||||
if ( $showControl ) {
|
if ( $showControl ) {
|
||||||
echo makeLink('?view=control', translate('Control'));
|
echo makeLink('?view=control', translate('Control'));
|
||||||
}
|
}
|
||||||
if ( $showZones ) {
|
if ( canView('System') ) {
|
||||||
?>
|
if ( $showZones ) {
|
||||||
<a id="HideZones" href="?view=montage&showZones=0"><?php echo translate('Hide Zones')?></a>
|
?>
|
||||||
<?php
|
<a id="HideZones" href="?view=montage&showZones=0"><?php echo translate('Hide Zones')?></a>
|
||||||
} else {
|
<?php
|
||||||
?>
|
} else {
|
||||||
<a id="ShowZones" href="?view=montage&showZones=1"><?php echo translate('Show Zones')?></a>
|
?>
|
||||||
<?php
|
<a id="ShowZones" href="?view=montage&showZones=1"><?php echo translate('Show Zones')?></a>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue