Skip to content

Commit

Permalink
Dev: survey menu permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Feb 10, 2016
1 parent 1fc8212 commit f0f64b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/views/admin/super/adminmenu.php
Expand Up @@ -71,6 +71,7 @@
<span style="margin-left: 0px;" class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<?php if (Permission::model()->hasGlobalPermission('surveys','create')): ?>
<!-- Create a new survey -->
<li>
<a href="<?php echo $this->createUrl("admin/survey/sa/newsurvey"); ?>">
Expand All @@ -93,7 +94,7 @@
</li>

<li class="divider"></li>

<?php endif;?>
<!-- List surveys -->
<li>
<a href="<?php echo $this->createUrl("admin/survey/sa/listsurveys"); ?>">
Expand All @@ -103,7 +104,6 @@

</ul>
</li>

<!-- user menu -->
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false" ><?php echo Yii::app()->session['user'];?> <span class="caret"></span></a>
Expand Down

0 comments on commit f0f64b8

Please sign in to comment.