We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd4ae21 commit a78cfdbCopy full SHA for a78cfdb
lib/redmine_gtt/patches/issue_patch.rb
@@ -6,7 +6,8 @@ module IssuePatch
6
def self.apply
7
Issue.prepend self unless Issue < self
8
Issue.class_eval do
9
- safe_attributes "geom" if lambda {|issue, user| user.allowed_to?(:edit_issues, issue.project)}
+ safe_attributes "geom",
10
+ if: ->(issue, user){ user.allowed_to?(:edit_issues, issue.project)}
11
end
12
13
0 commit comments