| Status | closed |
 |
|
Rating
|
    (0)
|
|
Ticket ID
|
1844
|
|
Subject
|
Users can only list/take quiz if they have permission to view the stats
|
|
Submitted by
|
mbrackeva
|
|
Priority
|
7
|
|
Category
|
Bug: Usability
|
|
Tiki Version
|
2.x
|
|
Feature
|
Quiz
|
|
Description
|
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.
|
|
Solution
|
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 )
|
|
Technical Area
|
PHP
|
|
Related project
|
Release20
|
|
Resolution status (legacy)
|
Fixed
|
|
Assigned To Person
|
mbrackeva
|
|
Lastmod by
|
pkdille
|
| Created |
Sunday 22 June, 2008 12:48:57 UTC |
| LastModif |
Tuesday 10 March, 2009 19:49:14 UTC |
Last Comments