diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-30 08:19:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-30 08:19:10 +0000 |
commit | 38ab1da933e775d8bb586b40b0678d322fe09cb3 (patch) | |
tree | 600c1f8b188017599c241eb72c39de8f1c4e92e3 | |
parent | 842ee8a5e03a5cc3791efdf89d68a6e4cc3ba4ce (diff) | |
download | redmine-38ab1da933e775d8bb586b40b0678d322fe09cb3.tar.gz redmine-38ab1da933e775d8bb586b40b0678d322fe09cb3.zip |
Merged r14281 (#19956).
git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14282 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | extra/svn/Redmine.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm index ddad660b3..1ec057645 100644 --- a/extra/svn/Redmine.pm +++ b/extra/svn/Redmine.pm @@ -453,7 +453,6 @@ sub is_member { my $redmine_pass = shift; my $r = shift; - my $dbh = connect_database($r); my $project_id = get_project_identifier($r); my $pass_digest = Digest::SHA::sha1_hex($redmine_pass); @@ -466,6 +465,7 @@ sub is_member { $usrprojpass = $cfg->{RedmineCacheCreds}->get($redmine_user.":".$project_id.":".$access_mode); return 1 if (defined $usrprojpass and ($usrprojpass eq $pass_digest)); } + my $dbh = connect_database($r); my $query = $cfg->{RedmineQuery}; my $sth = $dbh->prepare($query); $sth->execute($redmine_user, $project_id); |