Sha256: bbcadc62c317032559d2895ab64afe3dae186336ba78038d723a2d7b9f42efcc
Contents?: true
Size: 307 Bytes
Versions: 35
Compression:
Stored size: 307 Bytes
Contents
# frozen_string_literal: true module Renalware module HD class ClosedSessionPolicy < BasePolicy def destroy? edit? end def edit? return false unless record.persisted? user_is_admin? || user_is_super_admin? || !record.immutable? end end end end
Version data entries
35 entries across 35 versions & 1 rubygems