Skip to content

Commit

Permalink
Merge branch 'Bugfix-Export-denied-although-having-permission-to-view…
Browse files Browse the repository at this point in the history
…-votes' into joomla_5.x
  • Loading branch information
Jefferson49 committed Feb 10, 2024
2 parents 45a9ddf + 1b26002 commit 7b2d006
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 @@ -66,7 +66,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 7b2d006

Please sign in to comment.