Skip to content

Commit

Permalink
Fixed issue #09605: Crash when trying to grant permission in specific…
Browse files Browse the repository at this point in the history
… survey to user without any global permission

Dev: bad order
  • Loading branch information
Shnoulle committed Apr 16, 2015
1 parent 802dee4 commit ad14f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/surveypermission.php
Expand Up @@ -449,7 +449,7 @@ function set($surveyid)
if (!($sPermissionKey=='survey' && $sCRUDKey=='read'))
{
$usersummary .=CHtml::checkBox("perm_{$sPermissionKey}_{$sCRUDKey}",
($action=='setsurveysecurity' && Permission::model()->hasPermission('survey',$surveyid,$sPermissionKey,$sCRUDKey,$postuserid)), // checked
($action=='setsurveysecurity' && Permission::model()->hasPermission($surveyid,'survey',$sPermissionKey,$sCRUDKey,$postuserid)),
array( // htmlOptions
'data-indeterminate'=>(bool)($action=='setsurveysecurity' && Permission::model()->hasSurveyPermission( $surveyid,$sPermissionKey,$sCRUDKey,$postuserid)),
)
Expand Down

0 comments on commit ad14f8e

Please sign in to comment.