Skip to content

Commit

Permalink
Dev: remove uneeded test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Jan 24, 2017
1 parent d25a481 commit e6ff24d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions application/controllers/survey/index.php
Expand Up @@ -684,9 +684,6 @@ function _didSessionTimeout($surveyid)

function _canUserPreviewSurvey($iSurveyID)
{
if ( !isset($_SESSION['loginID']) ) // This is not needed because Permission::model()->hasSurveyPermission control connexion
return false;

return Permission::model()->hasSurveyPermission($iSurveyID,'surveycontent','read');
}

Expand Down

0 comments on commit e6ff24d

Please sign in to comment.