Add ng words for post/update

This commit is contained in:
KMY 2023-07-24 10:38:36 +09:00
parent d4602118fb
commit c553275381
12 changed files with 110 additions and 2 deletions

View 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