Project

General

Profile

Actions

Defect #17630

closed

Non-Administrator account can't show Issues list on multi role.

Added by Jun NAITOH over 10 years ago. Updated about 9 years ago.

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

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

If Redmine r11963 (2.4.0) later, Non-Administrator account can't show Issues list on multi role.

  1. I maked Issue for test prj.
  2. It is not displayed in non-Administrator account, but when "issues/1" URL is specified, I can show it.

  3. This problem occurs in the user who has two or more rolls with "View Issues" authority.

When the following line was deleted by way of experiment, this problem was solved.

http://www.redmine.org/projects/redmine/repository/revisions/11963/entry/trunk/app/models/issue_query.rb#L265

265: joins(:status, :project).

My environment

  • CentOS 6.3 x86_64
    # ruby script/about
    
    sh: darcs: command not found
    sh: hg: command not found
    sh: bzr: command not found
    Environment:
      Redmine version                2.5.2.stable
      Ruby version                   2.0.0-p481 (2014-05-08) [x86_64-linux]
      Rails version                  3.2.19
      Environment                    production
      Database adapter               SQLite
    SCM:
      Subversion                     1.6.11
      Git                            1.7.1
      Filesystem
    Redmine plugins:
      no plugin installed
    

Files

issues_list_shown_by_admin.png (15.5 KB) issues_list_shown_by_admin.png Jun NAITOH, 2014-08-08 06:04
issues_list_not_shown_by_no_admin_user.png (14.2 KB) issues_list_not_shown_by_no_admin_user.png Jun NAITOH, 2014-08-08 06:05
Roles_and_permissions_Issue_tracking.png (6.91 KB) Roles_and_permissions_Issue_tracking.png Jun NAITOH, 2014-08-08 06:06
Users_Roles.png (6.37 KB) Users_Roles.png Jun NAITOH, 2014-08-08 06:06
issue1.png (17 KB) issue1.png Jun NAITOH, 2014-08-08 06:34
Actions #1

Updated by Toshi MARUYAMA about 10 years ago

  • Target version set to 2.4.7
Actions #2

Updated by Jean-Philippe Lang about 10 years ago

  • Status changed from New to Needs feedback

Thanks for this detailed report but I'm not able to reproduce this probelm with the permissions set as in your example.

Actions #3

Updated by Jun NAITOH about 10 years ago

I tried CentOS 6.0 i686 environment, now.

I reproduced Ruby-1.9.3-p392 and SQLite DB on Redmine 2.4.6.
But I can't reproduced MySQL DB on Redmine 2.4.6.

It may be a problem which occurs in the SQL DB environment.

Actions #4

Updated by Jean-Philippe Lang about 10 years ago

Tested with ruby1.9.3 and SQLite and same permissions, works for me.

Actions #5

Updated by Jean-Philippe Lang about 10 years ago

  • Target version deleted (2.4.7)
  • Resolution set to Cant reproduce
Actions #6

Updated by Jan Niggemann (redmine.org team member) about 9 years ago

  • Status changed from Needs feedback to Closed
Actions

Also available in: Atom PDF