Skip to content

Commit

Permalink
Bugfix: Export denied although having permission to view votes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefferson49 committed Feb 10, 2024
1 parent 06299c4 commit 1b26002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com_sexypolling/admin/controllers/votesexport.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function runExport()
$sitename = substr($sitename, 0, 10);

// Access check
if (!$app->getIdentity()->authorise('core.admin','com_sexypolling')){
if (!$app->getIdentity()->authorise('core.view.votes','com_sexypolling')){
Factory::getApplication()->enqueueMessage( Text::_('JERROR_ALERTNOAUTHOR'), 'warning');
$this->setRedirect(ROUTE::_('index.php?option=com_sexypolling', true));
} else {
Expand Down

0 comments on commit 1b26002

Please sign in to comment.