Sha256: 172e30962d4b5a5c8825f24acc5fa27a8cfa01c6a609503a3e003f086c89d358

Contents?: true

Size: 270 Bytes

Versions: 3

Compression:

Stored size: 270 Bytes

Contents

# frozen_string_literal: true

class Ckeditor::PicturePolicy < 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/picture_policy.rb
ckeditor-5.1.2 lib/generators/ckeditor/templates/action_policy/picture_policy.rb
ckeditor-5.1.1 lib/generators/ckeditor/templates/action_policy/picture_policy.rb