]> source.dussan.org Git - redmine.git/commitdiff
Merged r14281 (#19956).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 30 May 2015 08:19:10 +0000 (08:19 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 30 May 2015 08:19:10 +0000 (08:19 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14282 e93f8b46-1217-0410-a6f0-8f06a7374b81

extra/svn/Redmine.pm

index ddad660b3f787532a18ad47e5acd0d21938e36a1..1ec0576459f6f9a34b6b4d79235048a6a28d6250 100644 (file)
@@ -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);