When a user has the permission "tiki_p_take_quiz", but not "tiki_p_view_quiz_stats", he won't see any quizzes. This is because of the following selection in tikilib.php:
function list_quizzes($offset, $maxRecords, $sort_mode, $find) {
....
$add=$this->user_has_perm_on_object($user, $res'quizId', 'quiz', array('tiki_p_take_quiz', 'tiki_p_view_quiz_stats'));
....
A user should be able to list (and thus take) quizzes without having the permission to view the stats.
Modify the code to:
function list_quizzes($offset, $maxRecords, $sort_mode, $find) {
....
$add=$this->user_has_perm_on_object($user, $res'quizId', 'quiz', array('tiki_p_take_quiz'));
....
pkdille 2009-03-10 : You already fixed this bug in r13315 on 2008-06-22 16:14:47 (please, next time, close the ticket too 😊)
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |