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:
parent
40302566a8
commit
338d81d6e3
|
@ -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)
|
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
|
OR
|
||||||
(roles.builtin=1 AND cast(projects.is_public as CHAR) IN ('t', '1'))
|
(roles.builtin=1 AND cast(projects.is_public as CHAR) IN ('t', '1'))
|
||||||
) ";
|
)
|
||||||
|
AND roles.permissions IS NOT NULL";
|
||||||
$self->{RedmineQuery} = trim($query);
|
$self->{RedmineQuery} = trim($query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue