Redmine.pm fails when permissions are NULL (#11818).

Contributed by John Yani.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10375 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-09-12 19:13:05 +00:00
parent 40302566a8
commit 338d81d6e3
1 changed files with 2 additions and 1 deletions

View File

@ -249,7 +249,8 @@ sub RedmineDSN {
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)
OR
(roles.builtin=1 AND cast(projects.is_public as CHAR) IN ('t', '1'))
) ";
)
AND roles.permissions IS NOT NULL";
$self->{RedmineQuery} = trim($query);
}