Defect #5207

Admin issue status change

Added by Brandon Bonds over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:2010-03-29
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues permissions
Target version:-
Resolution:Duplicate Affected version:0.9.3

Description

As an administrator, I cannot change the status of an issue in a project that I am not a member of.

I can change everything about the issue other than the status (even though I haven't tried, it looks like I can even delete an issue). Since I am an admin, I can always give myself temporary permission to change the status, but I would rather not have to do that.

The code that keeps this from happening appears to be in models/workflow.rb:

  # Find potential statuses the user could be allowed to switch issues to
  def self.available_statuses(project, user=User.current)
    Workflow.find(:all,
                  :include => :new_status,
                  :conditions => {:role_id => user.roles_for_project(project).collect(&:id)}).
      collect(&:new_status).
      compact.
      uniq.
      sort
  end

It affects both regular status change and bulk status change. In the case of bulk, I do not get any options, only "(No change)".

Thanks!
- Brandon


Related issues

Duplicates Redmine - Feature #2323: Workflow permissions for administrators Closed 2008-12-12

History

#1 Updated by Jean-Philippe Lang over 7 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Same as #2323.

Also available in: Atom PDF