parent
155cf12680
commit
73be8f38c1
31 changed files with 578 additions and 7 deletions
15
app/policies/tag_policy.rb
Normal file
15
app/policies/tag_policy.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class TagPolicy < ApplicationPolicy
|
||||
def index?
|
||||
staff?
|
||||
end
|
||||
|
||||
def hide?
|
||||
staff?
|
||||
end
|
||||
|
||||
def unhide?
|
||||
staff?
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue