summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index e46f2a38cb0..15f20bff642 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -2906,6 +2906,10 @@ class Project < ApplicationRecord
build_artifacts_size_refresh&.started?
end
+ def security_training_available?
+ licensed_feature_available?(:security_training)
+ end
+
private
# overridden in EE