]> source.dussan.org Git - redmine.git/commitdiff
Only select actual users from the database in Redmine.pm (#21312).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 28 Nov 2015 05:59:48 +0000 (05:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 28 Nov 2015 05:59:48 +0000 (05:59 +0000)
Patch by Holger Just.

git-svn-id: http://svn.redmine.org/redmine/trunk@14892 e93f8b46-1217-0410-a6f0-8f06a7374b81

extra/svn/Redmine.pm

index 8b7fe158fb3f2a9db5204e12f2df72482b5d4c98..bac1cb2fcc5bc5ba654ae4dccd2042c995c09a45 100644 (file)
@@ -244,6 +244,7 @@ sub RedmineDSN {
               WHERE 
                 users.login=? 
                 AND projects.identifier=?
+                AND users.type='User'
                 AND users.status=1 
                 AND (
                   roles.id IN (SELECT member_roles.role_id FROM members, member_roles WHERE members.user_id = users.id AND members.project_id = projects.id AND members.id = member_roles.member_id)