summaryrefslogtreecommitdiff
path: root/app/controllers/projects/security
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-16 18:18:33 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-16 18:18:33 +0000
commitf64a639bcfa1fc2bc89ca7db268f594306edfd7c (patch)
treea2c3c2ebcc3b45e596949db485d6ed18ffaacfa1 /app/controllers/projects/security
parentbfbc3e0d6583ea1a91f627528bedc3d65ba4b10f (diff)
downloadgitlab-ce-f64a639bcfa1fc2bc89ca7db268f594306edfd7c.tar.gz
Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40
Diffstat (limited to 'app/controllers/projects/security')
-rw-r--r--app/controllers/projects/security/configuration_controller.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/controllers/projects/security/configuration_controller.rb b/app/controllers/projects/security/configuration_controller.rb
index 9366ca7b0ed..bc4e58e54a9 100644
--- a/app/controllers/projects/security/configuration_controller.rb
+++ b/app/controllers/projects/security/configuration_controller.rb
@@ -3,19 +3,13 @@
module Projects
module Security
class ConfigurationController < Projects::ApplicationController
+ include SecurityAndCompliancePermissions
+
feature_category :static_application_security_testing
def show
- return render_404 unless feature_enabled?
-
render_403 unless can?(current_user, :read_security_configuration, project)
end
-
- private
-
- def feature_enabled?
- ::Feature.enabled?(:secure_security_and_compliance_configuration_page_on_ce, @project, default_enabled: :yaml)
- end
end
end
end