Skip to content

Commit 607d67a

Browse files
committed
Improve the way the beta is checked
1 parent fa7caf0 commit 607d67a

File tree

4 files changed

+224
-388
lines changed

4 files changed

+224
-388
lines changed

src/api/app/controllers/webui/webui_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ def set_package
101101
return if @package_name.blank?
102102

103103
begin
104-
@package = Package.get_by_project_and_name(@project.name, @package_name, follow_multibuild: true, follow_project_scmsync_links: true)
104+
options = { follow_multibuild: true }
105+
options[follow_project_scmsync_links] = true if Flipper.enabled?(:scmsync, User.session)
106+
@package = Package.get_by_project_and_name(@project.name, @package_name, options)
105107
# why it's not found is of no concern
106108
rescue APIError
107109
raise Package::UnknownObjectError, "Package not found: #{@project.name}/#{@package_name}"

0 commit comments

Comments
 (0)