Revision 1298:4f746d8966dd extra/svn

View differences:

extra/svn/Redmine.pm
388 388
    $sth->execute($project_id);
389 389
    my $ret = 0;
390 390
    if (my @row = $sth->fetchrow_array) {
391
    	if ($row[0] eq "1" || $row[0] eq "t") {
392
    		$ret = 1;
393
    	}
391
      if ($row[0] eq "1" || $row[0] eq "t") {
392
        $ret = 1;
393
      }
394 394
    }
395 395
    $sth->finish();
396 396
    undef $sth;
......
467 467
      }
468 468

  
469 469
      unless ($auth_source_id) {
470
	  			my $method = $r->method;
470
          my $method = $r->method;
471 471
          my $salted_password = Digest::SHA::sha1_hex($salt.$pass_digest);
472
					if ($hashed_password eq $salted_password && (($access_mode eq "R" && $permissions =~ /:browse_repository/) || $permissions =~ /:commit_access/) ) {
472
          if ($hashed_password eq $salted_password && (($access_mode eq "R" && $permissions =~ /:browse_repository/) || $permissions =~ /:commit_access/) ) {
473 473
              $ret = 1;
474 474
              last;
475 475
          }

Also available in: Unified diff