2021-03-11 19:13:27 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Projects
|
|
|
|
module Security
|
|
|
|
class ConfigurationController < Projects::ApplicationController
|
2021-04-17 20:07:23 +05:30
|
|
|
include SecurityAndCompliancePermissions
|
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
feature_category :static_application_security_testing
|
|
|
|
|
2021-09-04 01:27:46 +05:30
|
|
|
before_action only: [:show] do
|
|
|
|
push_frontend_feature_flag(:security_configuration_redesign, project, default_enabled: :yaml)
|
|
|
|
end
|
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
def show
|
|
|
|
render_403 unless can?(current_user, :read_security_configuration, project)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
Projects::Security::ConfigurationController.prepend_mod_with('Projects::Security::ConfigurationController')
|