Project

General

Profile

Actions

Defect #9478

closed

User with groups may not see issues assigned to him or to its groups

Added by Igor Zubkov over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2011-10-26
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

At line source:trunk/app/models/issue.rb#L97

redmine building array with ids for Principals and then use them in building sql:

"(#{table_name}.is_private = #{connection.quoted_false} OR #{table_name}.author_id = #{user.id} OR #{table_name}.assigned_to_id IN (#{user_ids}))"

but if it missing .join(', ') and it miss issues which are assigned to user/group if user.groups more then one. b/c, ruby on [1, 2] do .to_s and we have "12", instead "1, 2".

The same for source:trunk/app/models/issue.rb#L100

Patch for revision r7655 attached.


Files

redmine-r7655-issue.patch (925 Bytes) redmine-r7655-issue.patch Igor Zubkov, 2011-10-26 17:50

Related issues

Has duplicate Redmine - Defect #9400: Private issues are not shown if the user is included in a group.Closed2011-10-10

Actions
Actions

Also available in: Atom PDF