Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9d4052d14 | ||
|
|
21d2de48b7 | ||
|
|
a19a37b600 | ||
|
|
29e7b8d9ea | ||
|
|
f3b9c0027f |
@@ -8,7 +8,12 @@ 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
|
||||||
|
|||||||
+32
-1
@@ -227,9 +227,38 @@ 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(
|
||||||
@@ -309,7 +338,9 @@ sub is_member {
|
|||||||
bindpw => $rowldap[4] ? $rowldap[4] : "",
|
bindpw => $rowldap[4] ? $rowldap[4] : "",
|
||||||
filter => "(".$rowldap[6]."=%s)"
|
filter => "(".$rowldap[6]."=%s)"
|
||||||
);
|
);
|
||||||
$ret = 1 if ($ldap->authenticate($redmine_user, $redmine_pass));
|
my $method = $r->method;
|
||||||
|
$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;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module Redmine
|
|||||||
module VERSION #:nodoc:
|
module VERSION #:nodoc:
|
||||||
MAJOR = 0
|
MAJOR = 0
|
||||||
MINOR = 9
|
MINOR = 9
|
||||||
TINY = 5
|
TINY = 6
|
||||||
|
|
||||||
# Branch values:
|
# Branch values:
|
||||||
# * official release: nil
|
# * official release: nil
|
||||||
|
|||||||
Reference in New Issue
Block a user