Add sensitive words setting
This commit is contained in:
parent
0dbc070037
commit
cd00d7f533
12 changed files with 128 additions and 1 deletions
11
app/policies/sensitive_words_policy.rb
Normal file
11
app/policies/sensitive_words_policy.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class SensitiveWordsPolicy < ApplicationPolicy
|
||||
def show?
|
||||
role.can?(:manage_sensitive_words)
|
||||
end
|
||||
|
||||
def create?
|
||||
role.can?(:manage_sensitive_words)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue