about summary refs log tree commit diff
path: root/app/policies/tag_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/tag_policy.rb')
-rw-r--r--app/policies/tag_policy.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/policies/tag_policy.rb b/app/policies/tag_policy.rb
new file mode 100644
index 000000000..c63de01db
--- /dev/null
+++ b/app/policies/tag_policy.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class TagPolicy < ApplicationPolicy
+  def index?
+    staff?
+  end
+
+  def hide?
+    staff?
+  end
+
+  def unhide?
+    staff?
+  end
+end