Skip to content

Commit

Permalink
Fixed issue #10829: Survey admins presented with inappropriate control
Browse files Browse the repository at this point in the history
buttons

Dev: Fix permissions for question explorer add-buttons.
  • Loading branch information
olleharstedt committed Apr 15, 2016
1 parent cf754db commit 6abfae5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/views/admin/super/_question_explorer.php
Expand Up @@ -32,7 +32,7 @@
<li class="panel panel-default dropdownstyle" id="questionexplorer-group-container">


<?php if (!$bSurveyIsActive): ?>
<?php if (!$bSurveyIsActive && Permission::model()->hasSurveyPermission($iSurveyId, 'create')): ?>
<div class="row ">
<div class="col-sm-8" >
<!-- add group -->
Expand All @@ -59,14 +59,14 @@ class="" href="<?php echo $this->createUrl("/admin/questiongroups/sa/add/surveyi
</a>
</div>

<?php if (!$bSurveyIsActive): ?>
<?php if (!$bSurveyIsActive && Permission::model()->hasSurveyPermission($iSurveyId, 'create')): ?>
<div class="col-sm-3" id="questions-container-<?php echo $aGroup->gid; ?>">
<!-- add question to this group -->
<a data-toggle="tooltip" data-placement="top" title="<?php eT('Add a question to this group');?>" class="" href="<?php echo $this->createUrl("/admin/questions/sa/newquestion/surveyid/$iSurveyId/gid/$aGroup->gid"); ?>">
<span class="glyphicon glyphicon-plus-sign"></span>
</a>
</div>
<?php else: ?>
<?php elseif (Permission::model()->hasSurveyPermission($iSurveyId, 'create')): ?>
<div class="col-sm-3" id="questions-container-<?php echo $aGroup->gid; ?>">
<!-- add question to this group -->
<a title="<?php eT("You can't add questions while the survey is active.");?>" class='disabled' href="#" data-toggle="tooltip" data-placement="bottom">
Expand Down

0 comments on commit 6abfae5

Please sign in to comment.