Project

General

Profile

Actions

Defect #30121

closed

Projects API should not return invisible trackers

Added by Alex Stanev over 5 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
REST API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Currently projects API returns all trackers, assigned to given project. This is inconsistency with web view, which shows only trackers, visible to the user. They are the only usable to current user anyways.
This is invoked like this: projects/PROJECTID.json?include=trackers
The problem is in redmine/app/helpers/projects_helper.rb, where the line:

project.trackers.each do |tracker|

should be changed to
project.trackers.visible.each do |tracker|


Files


Related issues

Related to Redmine - Feature #285: Tracker role-based permissioningClosedJean-Philippe Lang

Actions
Actions

Also available in: Atom PDF