class KeywordingPolicy < ApplicationPolicy

  def new?
    create?
  end

  def create?
    record.keywordable.has_user?(user)
  end

  def destroy?
    record.keywordable.has_user?(user)
  end

end

class KeywordingPolicy < ApplicationPolicy

  def new?
    create?
  end

  def create?
    record.keywordable.has_user?(user) || user.admin?
  end

  def destroy?
    record.keywordable.has_user?(user) || user.admin?
  end

end

Allow admins to add keywords
Allow admins to add keywords
