Fixes Redmine.pm broken by r2726 (#3330).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2732 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c6efc90041
commit
bae7579a72
|
@ -149,16 +149,18 @@ sub RedmineDSN {
|
||||||
$self->{RedmineDSN} = $arg;
|
$self->{RedmineDSN} = $arg;
|
||||||
my $query = "SELECT
|
my $query = "SELECT
|
||||||
hashed_password, auth_source_id, permissions
|
hashed_password, auth_source_id, permissions
|
||||||
FROM members, projects, users, roles
|
FROM members, projects, users, roles, member_roles
|
||||||
WHERE
|
WHERE
|
||||||
projects.id=members.project_id
|
projects.id=members.project_id
|
||||||
|
AND member_roles.member_id=members.id
|
||||||
AND users.id=members.user_id
|
AND users.id=members.user_id
|
||||||
AND roles.id=members.role_id
|
AND roles.id=member_roles.role_id
|
||||||
AND users.status=1
|
AND users.status=1
|
||||||
AND login=?
|
AND login=?
|
||||||
AND identifier=? ";
|
AND identifier=? ";
|
||||||
$self->{RedmineQuery} = trim($query);
|
$self->{RedmineQuery} = trim($query);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub RedmineDbUser { set_val('RedmineDbUser', @_); }
|
sub RedmineDbUser { set_val('RedmineDbUser', @_); }
|
||||||
sub RedmineDbPass { set_val('RedmineDbPass', @_); }
|
sub RedmineDbPass { set_val('RedmineDbPass', @_); }
|
||||||
sub RedmineDbWhereClause {
|
sub RedmineDbWhereClause {
|
||||||
|
|
Loading…
Reference in New Issue