Oh no! Show admin buttons only if users have the right
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
<h2><?=_('Dashboard');?></h2>
|
<h2><?=_('Dashboard');?></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h3><?=_('Quick actions');?></h3>
|
<h3><?=_('Quick actions');?></h3>
|
||||||
<p>
|
<p>
|
||||||
@@ -53,6 +52,9 @@
|
|||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
|
if ($this->access->isAdmin()):
|
||||||
|
?>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h3><?=_('Administration');?></h3>
|
<h3><?=_('Administration');?></h3>
|
||||||
<p>
|
<p>
|
||||||
@@ -62,6 +64,9 @@
|
|||||||
</a><a class="button right big" href="<?=site_url('admin/settings');?>"><strong><?=image_asset('icons-big/switch.png');?></strong><br /><?=_('Global settings');?></a>
|
</a><a class="button right big" href="<?=site_url('admin/settings');?>"><strong><?=image_asset('icons-big/switch.png');?></strong><br /><?=_('Global settings');?></a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user