Skip to content

Commit

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

Dev: Hide reorder button in side-menu if user has no update permission.
  • Loading branch information
olleharstedt committed Apr 15, 2016
1 parent 64248d5 commit 9797975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions application/core/Survey_Common_Action.php
Expand Up @@ -933,6 +933,7 @@ function _surveysidemenu($aData)
}
$aData['aGroups'] = $aGroups;
$aData['surveycontent'] = Permission::model()->hasSurveyPermission($aData['surveyid'], 'surveycontent', 'read');
$aData['surveycontentupdate'] = Permission::model()->hasSurveyPermission($aData['surveyid'], 'surveycontent', 'update');
$this->getController()->renderPartial("/admin/super/sidemenu", $aData);
}
else
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/super/sidemenu.php
Expand Up @@ -126,7 +126,7 @@
<?php endif; ?>

<!-- Organize questions -->
<?php if($surveycontent):?>
<?php if($surveycontentupdate):?>
<?php if ($activated):?>
<li class="disabled">
<a href='#'>
Expand Down

0 comments on commit 9797975

Please sign in to comment.