replace tabs to spaces at Redmine.pm
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11049 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8396fff19b
commit
16bddb9d24
|
@ -388,9 +388,9 @@ sub is_public_project {
|
||||||
$sth->execute($project_id);
|
$sth->execute($project_id);
|
||||||
my $ret = 0;
|
my $ret = 0;
|
||||||
if (my @row = $sth->fetchrow_array) {
|
if (my @row = $sth->fetchrow_array) {
|
||||||
if ($row[0] eq "1" || $row[0] eq "t") {
|
if ($row[0] eq "1" || $row[0] eq "t") {
|
||||||
$ret = 1;
|
$ret = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$sth->finish();
|
$sth->finish();
|
||||||
undef $sth;
|
undef $sth;
|
||||||
|
@ -467,9 +467,9 @@ sub is_member {
|
||||||
}
|
}
|
||||||
|
|
||||||
unless ($auth_source_id) {
|
unless ($auth_source_id) {
|
||||||
my $method = $r->method;
|
my $method = $r->method;
|
||||||
my $salted_password = Digest::SHA::sha1_hex($salt.$pass_digest);
|
my $salted_password = Digest::SHA::sha1_hex($salt.$pass_digest);
|
||||||
if ($hashed_password eq $salted_password && (($access_mode eq "R" && $permissions =~ /:browse_repository/) || $permissions =~ /:commit_access/) ) {
|
if ($hashed_password eq $salted_password && (($access_mode eq "R" && $permissions =~ /:browse_repository/) || $permissions =~ /:commit_access/) ) {
|
||||||
$ret = 1;
|
$ret = 1;
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue