summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-24 16:55:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-24 16:55:08 +0000
commitf2a12d9eb5aeacf2b538c9b0062f197112c0f3ab (patch)
tree0868b49368ca23c68d4d8cc97e4f7fce189f6bce
parentacad206063c159fa9eec62e12104c065c5424d78 (diff)
downloadredmine-f2a12d9eb5aeacf2b538c9b0062f197112c0f3ab.tar.gz
redmine-f2a12d9eb5aeacf2b538c9b0062f197112c0f3ab.zip
Added user status criteria in Redmine.pm
git-svn-id: http://redmine.rubyforge.org/svn/trunk@930 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--extra/svn/Redmine.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm
index 7505b71cb..b76622e3d 100644
--- a/extra/svn/Redmine.pm
+++ b/extra/svn/Redmine.pm
@@ -176,7 +176,7 @@ sub is_member {
my $pass_digest = Digest::SHA1::sha1_hex($redmine_pass);
my $sth = $dbh->prepare(
- "SELECT hashed_password FROM members, projects, users WHERE projects.id=members.project_id AND users.id=members.user_id AND login=? AND identifier=?;"
+ "SELECT hashed_password FROM members, projects, users WHERE projects.id=members.project_id AND users.id=members.user_id AND users.status=1 AND login=? AND identifier=?;"
);
$sth->execute($redmine_user, $project_id);