summaryrefslogtreecommitdiff
path: root/app/policies/application_setting_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/application_setting_policy.rb')
-rw-r--r--app/policies/application_setting_policy.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/policies/application_setting_policy.rb b/app/policies/application_setting_policy.rb
new file mode 100644
index 00000000000..114c71fd99d
--- /dev/null
+++ b/app/policies/application_setting_policy.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+class ApplicationSettingPolicy < BasePolicy # rubocop:disable Gitlab/NamespacedClass
+ rule { admin }.enable :read_application_setting
+end