about summary refs log tree commit diff
path: root/app/lib/admin/system_check/rules_check.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/admin/system_check/rules_check.rb')
-rw-r--r--app/lib/admin/system_check/rules_check.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/lib/admin/system_check/rules_check.rb b/app/lib/admin/system_check/rules_check.rb
index 1fbdf955d..8206a5df3 100644
--- a/app/lib/admin/system_check/rules_check.rb
+++ b/app/lib/admin/system_check/rules_check.rb
@@ -3,6 +3,10 @@
 class Admin::SystemCheck::RulesCheck < Admin::SystemCheck::BaseCheck
   include RoutingHelper
 
+  def skip?
+    !current_user.can?(:manage_rules)
+  end
+
   def pass?
     Rule.kept.exists?
   end