Skip to content

Commit

Permalink
Fixed issue #5010: Export responses to Excel not permitted even if it…
Browse files Browse the repository at this point in the history
… was set for a user

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@9887 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Mar 11, 2011
1 parent a330080 commit 7cd9b7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions admin/admin.php
Expand Up @@ -465,7 +465,7 @@
}
elseif ($action == 'exportresults')
{
if(bHasSurveyPermission($surveyid,'exportresponses','read')) {include('exportresults.php');}
if(bHasSurveyPermission($surveyid,'responses','export')) {include('exportresults.php');}
else { include('access_denied.php');}
}
elseif ($action == 'statistics')
Expand All @@ -480,7 +480,7 @@
}
elseif ($action == 'exportspss')
{
if(bHasSurveyPermission($surveyid,'exportresponses','read'))
if(bHasSurveyPermission($surveyid,'responses','export'))
{
include('export_data_spss.php');
}
Expand All @@ -502,12 +502,12 @@
}
elseif ($action == 'exportr')
{
if(bHasSurveyPermission($surveyid,'exportresponses','read')) {include('export_data_r.php');}
if(bHasSurveyPermission($surveyid,'responses','export')) {include('export_data_r.php');}
else { include('access_denied.php');}
}
elseif ($action == 'vvexport')
{
if(bHasSurveyPermission($surveyid,'exportresponses','read')) {include('vvexport.php');}
if(bHasSurveyPermission($surveyid,'responses','export')) {include('vvexport.php');}
else { include('access_denied.php');}
}
elseif ($action == 'vvimport')
Expand Down
2 changes: 1 addition & 1 deletion admin/html_functions.php
Expand Up @@ -88,7 +88,7 @@ function browsemenubar($title='')
}
$browsemenubar .= "<img src='$imageurl/seperator.gif' alt='' />\n";

if (bHasSurveyPermission($surveyid,'exportresponses','read'))
if (bHasSurveyPermission($surveyid,'responses','export'))
{
// Export to application
$browsemenubar .= "<a href='$scriptname?action=exportresults&amp;sid=$surveyid' title=\"".$clang->gTview("Export results to application")."\" >"
Expand Down

0 comments on commit 7cd9b7d

Please sign in to comment.