Defect #5822 » Redmine_SQL_Server_Dates_Patch.patch
models/issue.rb (working copy) | ||
---|---|---|
91 | 91 |
after_destroy :destroy_children |
92 | 92 |
after_destroy :update_parent_attributes |
93 | 93 |
|
94 |
coerce_sqlserver_date :start_date, :due_date |
|
95 |
|
|
94 | 96 |
# Returns true if usr or current user is allowed to view the issue |
95 | 97 |
def visible?(usr=nil) |
96 | 98 |
(usr || User.current).allowed_to?(:view_issues, self.project) |
models/project.rb (working copy) | ||
---|---|---|
81 | 81 |
named_scope :all_public, { :conditions => { :is_public => true } } |
82 | 82 |
named_scope :visible, lambda { { :conditions => Project.visible_by(User.current) } } |
83 | 83 |
|
84 |
coerce_sqlserver_date :start_date, :due_date |
|
85 |
|
|
84 | 86 |
def identifier=(identifier) |
85 | 87 |
super unless identifier_frozen? |
86 | 88 |
end |
models/version.rb (working copy) | ||
---|---|---|
36 | 36 |
named_scope :open, :conditions => {:status => 'open'} |
37 | 37 |
named_scope :visible, lambda {|*args| { :include => :project, |
38 | 38 |
:conditions => Project.allowed_to_condition(args.first || User.current, :view_issues) } } |
39 | ||
39 |
coerce_sqlserver_date :start_date, :due_date, :effective_date |
|
40 |
|
|
40 | 41 |
# Returns true if +user+ or current user is allowed to view the version |
41 | 42 |
def visible?(user=User.current) |
42 | 43 |
user.allowed_to?(:view_issues, self.project) |
- « Previous
- 1
- 2
- Next »