lib/query_patch.rb
#see <redmine_src>/app/models/query.rb for overwritten methods
see /app/models/query.rb for overwritten methods
see / app / models / query . rb for overwritten methods
def available_filters_with_patch
      return @available_filters if @available_filters
      @available_filters = available_filters_without_patch
      @available_filters.delete("estimated_hours") if (!User.current.allowed_to?(:view_time_entries, project) and !User.current.admin)
      return @available_filters
    end
def available_filters_with_patch return @available_filters if @available_filters @available_filters = available_filters_without_patch @available_filters . delete ( "estimated_hours" ) if ( ! User . current . allowed_to? ( :view_time_entries , project ) and ! User . current . admin ) return @available_filters end
see <redmine_src>/app/models/query.rb for overwritten methods
see <redmine_src > / app / models / query . rb for overwritten methods