summaryrefslogtreecommitdiffstats
path: root/lib/redmine/safe_attributes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-08-30 21:46:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-08-30 21:46:22 +0000
commit58c8c1ca9f4515d08204aca21d1d735dd49f611f (patch)
treecc3f70c33735185f393e94b37fcfb06b39d8e1a6 /lib/redmine/safe_attributes.rb
parent19109f6f640ca1d03499000ef520d80b4d753046 (diff)
downloadredmine-58c8c1ca9f4515d08204aca21d1d735dd49f611f.tar.gz
redmine-58c8c1ca9f4515d08204aca21d1d735dd49f611f.zip
Fixed that new role does not have non member permissions as default (#23633).
git-svn-id: http://svn.redmine.org/redmine/trunk@15764 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/safe_attributes.rb')
-rw-r--r--lib/redmine/safe_attributes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/safe_attributes.rb b/lib/redmine/safe_attributes.rb
index 363048d29..1d2a3d6e1 100644
--- a/lib/redmine/safe_attributes.rb
+++ b/lib/redmine/safe_attributes.rb
@@ -74,7 +74,7 @@ module Redmine
# # => {'title' => 'My book'}
def delete_unsafe_attributes(attrs, user=User.current)
safe = safe_attribute_names(user)
- attrs.dup.delete_if {|k,v| !safe.include?(k)}
+ attrs.dup.delete_if {|k,v| !safe.include?(k.to_s)}
end
# Sets attributes from attrs that are safe