diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-29 08:53:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-29 08:53:41 +0000 |
commit | 427a745184d1b1b38ac045f6e86295e3e2b1e60a (patch) | |
tree | af1b43510aa8b1533650533f9a4754b7d9182b11 /extra | |
parent | 34c5b51cf095ddff2f38c44920ecdf428a6fb0b8 (diff) | |
download | redmine-427a745184d1b1b38ac045f6e86295e3e2b1e60a.tar.gz redmine-427a745184d1b1b38ac045f6e86295e3e2b1e60a.zip |
Check that repository module is enabled (#24307).
git-svn-id: http://svn.redmine.org/redmine/trunk@16286 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra')
-rw-r--r-- | extra/svn/Redmine.pm | 5 |
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); |