[Show/Hide Right Column]

Tracker Item: Bugs & Wish list Help

View

View Item

Statusclosed closed
Rating -2-1012(0)Help
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
Comments (0)

Comments

Attachments (0)

Attachments

 filenamecreatedfilesize 
No attachments for this item


Search Wishes (subject only)

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.


Show php error messages
 
PHP (5.2.10-2ubuntu6.4) NOTICE (E_NOTICE):
File: tiki-view_tracker_item.php
Line: 411
Type: Undefined variable: group
PHP (5.2.10-2ubuntu6.4) NOTICE (E_NOTICE):
File: lib/smarty_tiki/modifier.username.php
Line: 19
Type: Undefined index: realName