Compare commits

..
1 Commits
Author SHA1 Message Date
Eric Davis 43eb3ed51c Tagging 0.9.5
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/tags/0.9.5@3818 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-06-28 02:57:11 +00:00
5 changed files with 7 additions and 43 deletions
-3
View File
@@ -25,9 +25,6 @@ class VersionsController < ApplicationController
helper :projects helper :projects
def show def show
@issues = @version.fixed_issues.visible.find(:all,
:include => [:status, :tracker, :priority],
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id")
end end
def edit def edit
+5 -2
View File
@@ -32,10 +32,13 @@
<%= render :partial => 'versions/overview', :locals => {:version => @version} %> <%= render :partial => 'versions/overview', :locals => {:version => @version} %>
<%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %> <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
<% if @issues.present? %> <% issues = @version.fixed_issues.find(:all,
:include => [:status, :tracker, :priority],
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %>
<% if issues.size > 0 %>
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend> <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
<ul> <ul>
<% @issues.each do |issue| -%> <% issues.each do |issue| -%>
<li><%= link_to_issue(issue) %></li> <li><%= link_to_issue(issue) %></li>
<% end -%> <% end -%>
</ul> </ul>
-5
View File
@@ -8,12 +8,7 @@ http://www.redmine.org/
Adds context menu to the roadmap issue lists Adds context menu to the roadmap issue lists
== 2010-07-07 v0.9.6
Fixed: Redmine.pm access by unauthorized users
== 2010-06-24 v0.9.5 == 2010-06-24 v0.9.5
Linkify folder names on revision view Linkify folder names on revision view
"fiters" and "options" should be hidden in print view via css "fiters" and "options" should be hidden in print view via css
Fixed: NoMethodError when no issue params are submitted Fixed: NoMethodError when no issue params are submitted
+1 -32
View File
@@ -227,38 +227,9 @@ sub authen_handler {
} }
} }
# check if authentication is forced
sub is_authentication_forced {
my $r = shift;
my $dbh = connect_database($r);
my $sth = $dbh->prepare(
"SELECT value FROM settings where settings.name = 'login_required';"
);
$sth->execute();
my $ret = 0;
if (my @row = $sth->fetchrow_array) {
if ($row[0] eq "1" || $row[0] eq "t") {
$ret = 1;
}
}
$sth->finish();
undef $sth;
$dbh->disconnect();
undef $dbh;
$ret;
}
sub is_public_project { sub is_public_project {
my $project_id = shift; my $project_id = shift;
my $r = shift; my $r = shift;
if (is_authentication_forced($r)) {
return 0;
}
my $dbh = connect_database($r); my $dbh = connect_database($r);
my $sth = $dbh->prepare( my $sth = $dbh->prepare(
@@ -338,9 +309,7 @@ sub is_member {
bindpw => $rowldap[4] ? $rowldap[4] : "", bindpw => $rowldap[4] ? $rowldap[4] : "",
filter => "(".$rowldap[6]."=%s)" filter => "(".$rowldap[6]."=%s)"
); );
my $method = $r->method; $ret = 1 if ($ldap->authenticate($redmine_user, $redmine_pass));
$ret = 1 if ($ldap->authenticate($redmine_user, $redmine_pass) && ((defined $read_only_methods{$method} && $permissions =~ /:browse_repository/) || $permissions =~ /:commit_access/));
} }
$sthldap->finish(); $sthldap->finish();
undef $sthldap; undef $sthldap;
+1 -1
View File
@@ -4,7 +4,7 @@ module Redmine
module VERSION #:nodoc: module VERSION #:nodoc:
MAJOR = 0 MAJOR = 0
MINOR = 9 MINOR = 9
TINY = 6 TINY = 5
# Branch values: # Branch values:
# * official release: nil # * official release: nil