Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Patched Issue#visible on Redmine 0.8

  • Loading branch information...
commit 89df05f6f1060e81233f513d0c9fbaef1c41a56a 1 parent 56c7f75
@edavis10 edavis10 authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/stuff_to_do_issue_patch.rb
View
7 lib/stuff_to_do_issue_patch.rb
@@ -27,7 +27,12 @@ def self.included(base) # :nodoc:
{:from => date_from, :to => date_to}]
}
}
-
+
+ # Redmine 0.8.x compatibility method
+ unless ::Issue.respond_to?(:visible)
+ named_scope :visible, lambda {|*args| { :include => :project,
+ :conditions => Project.allowed_to_condition(args.first || User.current, :view_issues) } }
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.