Registered access to quizzes

Jean-Francois Questiaux
Jean-Francois Questiaux
  • Jean-Francois Questiaux
  • 2 months ago

Hi.
Except if I missed something, at the moment if a non logged-in user tries to access a quiz with a "registered" access level, he'll get a "403 forbidden access" message, which is true but not very friendly.
I "fixed" that by changing the line 174 code in components > com_communityquiz > views > quiz > view.html.php

// throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'), 403);
$return = base64_encode(JURI::base() . substr($_SERVER['REQUEST_URI'],1));
$app->redirect(JRoute::_('index.php?option=com_comptes&view=login&Itemid=391&type=2&return=' . $return, false));

so the user is redirected to the login page.

But it would be nice to have  this natively so I would not have to redo the change after each update.


Access to viewing replies is restricted.
Showing 1 of 1 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai