diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-15 10:41:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-15 10:41:49 +0000 |
commit | b6e6f557f01bebcd90e034e4b6cc5b755a95c006 (patch) | |
tree | 38b97ccf7c7f6efdf78b66b84b1e14e0e857b0b0 /app/models/issue.rb | |
parent | 31f2e848b56b8ed260128ba0d9fc245b06800e09 (diff) | |
download | redmine-b6e6f557f01bebcd90e034e4b6cc5b755a95c006.tar.gz redmine-b6e6f557f01bebcd90e034e4b6cc5b755a95c006.zip |
Display issue form fields according to permissions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8227 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index dcafade15..9b6be7db6 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -283,6 +283,7 @@ class Issue < ActiveRecord::Base 'assigned_to_id', 'fixed_version_id', 'done_ratio', + 'lock_version', :if => lambda {|issue, user| issue.new_statuses_allowed_to(user).any? } safe_attributes 'watcher_user_ids', |