diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-13 19:30:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-13 19:30:15 +0000 |
commit | 37aa016740399f2adffe43a509571b13e9025b9b (patch) | |
tree | 7ca170dadac8064234cd92dd0f8bcef80b2dd1fa /app/controllers/issues_controller.rb | |
parent | 9548d39a15c15338c790f18cdced3b17029af282 (diff) | |
download | redmine-37aa016740399f2adffe43a509571b13e9025b9b.tar.gz redmine-37aa016740399f2adffe43a509571b13e9025b9b.zip |
Added Issue#attributes_editable?
git-svn-id: http://svn.redmine.org/redmine/trunk@13996 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r-- | app/controllers/issues_controller.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 13de1661a..f5d3fcd2e 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -116,7 +116,6 @@ class IssuesController < ApplicationController @relations = @issue.relations.select {|r| r.other_issue(@issue) && r.other_issue(@issue).visible? } @allowed_statuses = @issue.new_statuses_allowed_to(User.current) - @edit_allowed = User.current.allowed_to?(:edit_issues, @project) @priorities = IssuePriority.active @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project) @relation = IssueRelation.new @@ -393,7 +392,6 @@ class IssuesController < ApplicationController # from the params # TODO: Refactor, not everything in here is needed by #edit def update_issue_from_params - @edit_allowed = User.current.allowed_to?(:edit_issues, @project) @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project) if params[:time_entry] @time_entry.attributes = params[:time_entry] |