Sha256: 4db3cfc80d35444693ad1f16de7d206aef6a550d3241abebdfc4d593f63aa536
Contents?: true
Size: 566 Bytes
Versions: 7
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/letters" module Renalware module Letters class LetterPolicy < BasePolicy alias_attribute :letter, :record def author? has_write_privileges? end def update? false end def submit_for_review? false end def reject? false end def approve? false end def complete? false end def destroy? record.state.downcase.to_sym != :approved end end end end
Version data entries
7 entries across 7 versions & 1 rubygems