summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-12 19:13:05 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-12 19:13:05 +0000
commit338d81d6e3f9f210420acc31eb2ed3b753b4c933 (patch)
treee9dee29d1f3d048d631c5ac1827f966c3c254f86 /extra
parent40302566a8ecc53e485385a032dd9ee44fd84eb7 (diff)
downloadredmine-338d81d6e3f9f210420acc31eb2ed3b753b4c933.tar.gz
redmine-338d81d6e3f9f210420acc31eb2ed3b753b4c933.zip
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
Diffstat (limited to 'extra')
-rw-r--r--extra/svn/Redmine.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm
index d0ca3f196..3d6a44be5 100644
--- a/extra/svn/Redmine.pm
+++ b/extra/svn/Redmine.pm
@@ -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);
}