summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Whiting <jpwhiting@kde.org>2013-05-17 17:26:31 (GMT)
committerHéctor Orón Martínez <hector.oron@collabora.co.uk>2014-01-14 10:57:13 (GMT)
commit8b7cfd19d825f3c5cd9ed9957642849794f4185b (patch)
tree926cb67c2ced8814900e691809924f5622a26467
parentab5246c7448450acc7206370725b989ec1510ad9 (diff)
downloadopen-build-service-8b7cfd19d825f3c5cd9ed9957642849794f4185b.tar.gz
open-build-service-8b7cfd19d825f3c5cd9ed9957642849794f4185b.tar.xz
Allow projects to build against hidden projects.
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
-rw-r--r--src/api/app/controllers/source_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/api/app/controllers/source_controller.rb b/src/api/app/controllers/source_controller.rb
index cab2dad..cbd6d27 100644
--- a/src/api/app/controllers/source_controller.rb
+++ b/src/api/app/controllers/source_controller.rb
@@ -777,11 +777,11 @@ class SourceController < ApplicationController
# permissions check
tproject_name = e.value("project")
tprj = DbProject.get_by_name(tproject_name)
- if tprj.class == DbProject and tprj.disabled_for?('access', nil, nil) # user can access tprj, but backend would refuse to take binaries from there
- render_error :status => 404, :errorcode => "repository_access_failure" ,
- :message => "The current backend implementation is not using binaries from read access protected projects #{tproject_name}"
- return
- end
+# if tprj.class == DbProject and tprj.disabled_for?('access', nil, nil) # user can access tprj, but backend would refuse to take binaries from there
+# render_error :status => 404, :errorcode => "repository_access_failure" ,
+# :message => "The current backend implementation is not using binaries from read access protected projects #{tproject_name}"
+# return
+# end
logger.debug "project #{project_name} repository path checked against #{tproject_name} projects permission"
end