Loading...
 
Skip to main content

Users must have global tiki_p_view_trackers to see tracker item even if tracker specific perm set

Status
Closed
Subject
Users must have global tiki_p_view_trackers to see tracker item even if tracker specific perm set
Version
6.x
Category
  • Consistency
Feature
Permission
Trackers
Resolution status
Fixed or Solved
Submitted by
Nelson Ko
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

The problem is summarized in 2:

1) The category perm checking for individual tracker item always happens no matter what.

2) Even when it makes sense to check for category perms, the filter appears to not take into account specific tracker perm, because trackeritem is a "different" object from tracker.

The problem is in the following piece of code in trackerlib.php

Copy to clipboard
function filter_categ_items($ret) { //this is an approxomation - the perm should be function of the status global $categlib; include_once('lib/categories/categlib.php'); if (empty($ret['itemId']) || $categlib->is_categorized('trackeritem', $ret['itemId'])) { return Perms::filter(array('type' => 'trackeritem'), 'object', $ret, array('object' => 'itemId'), 'view_trackers'); } else { return $ret; } }
Solution
Workaround
Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3664
Created
Thursday 18 November, 2010 08:15:47 UTC
by Nelson Ko
LastModif
Tuesday 30 June, 2026 10:04:58 UTC


Show PHP error messages