Add ng words for post/update
This commit is contained in:
parent
d4602118fb
commit
c553275381
12 changed files with 110 additions and 2 deletions
11
app/policies/ng_words_policy.rb
Normal file
11
app/policies/ng_words_policy.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class NgWordsPolicy < ApplicationPolicy
|
||||
def show?
|
||||
role.can?(:manage_ng_words)
|
||||
end
|
||||
|
||||
def create?
|
||||
role.can?(:manage_ng_words)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue