Sha256: 0145b6d14b4b0897293773b48454c53e9cea58c4b304f56cb0f42b9ca37097fa

Contents?: true

Size: 344 Bytes

Versions: 19

Compression:

Stored size: 344 Bytes

Contents

class EventImportFilePolicy < ApplicationPolicy
  def index?
    user.try(:has_role?, 'Librarian')
  end

  def show?
    user.try(:has_role?, 'Librarian')
  end

  def create?
    user.try(:has_role?, 'Librarian')
  end

  def update?
    user.try(:has_role?, 'Librarian')
  end

  def destroy?
    user.try(:has_role?, 'Librarian')
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
enju_event-0.3.5 app/policies/event_import_file_policy.rb
enju_event-0.4.0.rc.1 app/policies/event_import_file_policy.rb
enju_event-0.3.4 app/policies/event_import_file_policy.rb
enju_event-0.3.3 app/policies/event_import_file_policy.rb
enju_event-0.4.0.beta.2 app/policies/event_import_file_policy.rb
enju_event-0.4.0.beta.1 app/policies/event_import_file_policy.rb
enju_event-0.3.2 app/policies/event_import_file_policy.rb
enju_event-0.3.1 app/policies/event_import_file_policy.rb
enju_event-0.3.0 app/policies/event_import_file_policy.rb
enju_event-0.3.0.rc.1 app/policies/event_import_file_policy.rb
enju_event-0.3.0.beta.1 app/policies/event_import_file_policy.rb
enju_event-0.2.3 app/policies/event_import_file_policy.rb
enju_event-0.2.2 app/policies/event_import_file_policy.rb
enju_event-0.2.1 app/policies/event_import_file_policy.rb
enju_event-0.2.0 app/policies/event_import_file_policy.rb
enju_event-0.2.0.beta.4 app/policies/event_import_file_policy.rb
enju_event-0.2.0.beta.3 app/policies/event_import_file_policy.rb
enju_event-0.2.0.beta.2 app/policies/event_import_file_policy.rb
enju_event-0.2.0.beta.1 app/policies/event_import_file_policy.rb