Sha256: b649a04b8770878a4e31b68ce5b67327804be490842902194c4814c6c7f2d1b1

Contents?: true

Size: 331 Bytes

Versions: 134

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/snippets"

module Renalware
  module System
    class MessagePolicy < BasePolicy
      def new?
        user_is_super_admin?
      end

      def create?
        user_is_super_admin?
      end

      def destroy?
        user_is_super_admin?
      end
    end
  end
end

Version data entries

134 entries across 134 versions & 1 rubygems

Version Path
renalware-core-2.0.104 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.103 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.102 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.101 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.100 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.99 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.98 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.97 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.96 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.95 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.94 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.93 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.92 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.91 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.90 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.89 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.88 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.87 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.86 app/policies/renalware/system/message_policy.rb
renalware-core-2.0.85 app/policies/renalware/system/message_policy.rb