Sha256: 6647ae1a70d521aad2cbe4a4bf754fab17f983e8080a2c5fa2234947a1e5d702

Contents?: true

Size: 277 Bytes

Versions: 3

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

class Ckeditor::AttachmentFilePolicy < ApplicationPolicy
  # See https://actionpolicy.evilmartians.io/#/writing_policies
  #

  def index?
    user.present?
  end

  def create?
    user.present?
  end

  def destroy?
    user.present?
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ckeditor-5.1.3 lib/generators/ckeditor/templates/action_policy/attachment_file_policy.rb
ckeditor-5.1.2 lib/generators/ckeditor/templates/action_policy/attachment_file_policy.rb
ckeditor-5.1.1 lib/generators/ckeditor/templates/action_policy/attachment_file_policy.rb