summaryrefslogtreecommitdiffstats
path: root/extra/svn
diff options
context:
space:
mode:
Diffstat (limited to 'extra/svn')
-rw-r--r--extra/svn/Redmine.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm
index c3e74d3ab..2652ceae1 100644
--- a/extra/svn/Redmine.pm
+++ b/extra/svn/Redmine.pm
@@ -244,6 +244,7 @@ sub RedmineDSN {
WHERE
users.login=?
AND projects.identifier=?
+ AND EXISTS (SELECT 1 FROM enabled_modules em WHERE em.project_id = projects.id AND em.name = 'repository')
AND users.type='User'
AND users.status=1
AND (
@@ -390,7 +391,9 @@ sub is_public_project {
my $dbh = connect_database($r);
my $sth = $dbh->prepare(
- "SELECT is_public FROM projects WHERE projects.identifier = ? AND projects.status <> 9;"
+ "SELECT is_public FROM projects
+ WHERE projects.identifier = ? AND projects.status <> 9
+ AND EXISTS (SELECT 1 FROM enabled_modules em WHERE em.project_id = projects.id AND em.name = 'repository');"
);
$sth->execute($project_id);