From: Jean-Philippe Lang Date: Fri, 4 Dec 2015 12:49:42 +0000 (+0000) Subject: Merged r14892 (#21312). X-Git-Tag: 2.6.9~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c46fc790619e8608d1d1c0765c9ec5e39772e281;p=redmine.git Merged r14892 (#21312). git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@14919 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm index 8b7fe158f..bac1cb2fc 100644 --- a/extra/svn/Redmine.pm +++ b/extra/svn/Redmine.pm @@ -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)