Sha256: 186fdb5131b1e725729886289bbfa7e6b783290b904fabcc3a2db454eba515a1

Contents?: true

Size: 322 Bytes

Versions: 66

Compression:

Stored size: 322 Bytes

Contents

# frozen_string_literal: true

module Spree
  module PermissionSets
    class UserDisplay < PermissionSets::Base
      def activate!
        can [:read, :admin, :edit, :addresses, :orders, :items], Spree.user_class
        can [:read, :admin], Spree::StoreCredit
        can :read, Spree::Role
      end
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
solidus_core-4.0.4 lib/spree/permission_sets/user_display.rb
solidus_core-3.4.6 lib/spree/permission_sets/user_display.rb
solidus_core-4.0.3 lib/spree/permission_sets/user_display.rb
solidus_core-3.4.5 lib/spree/permission_sets/user_display.rb
solidus_core-4.0.2 lib/spree/permission_sets/user_display.rb
solidus_core-3.4.4 lib/spree/permission_sets/user_display.rb
solidus_core-3.3.4 lib/spree/permission_sets/user_display.rb
solidus_core-3.2.9 lib/spree/permission_sets/user_display.rb
solidus_core-3.2.8 lib/spree/permission_sets/user_display.rb
solidus_core-3.3.3 lib/spree/permission_sets/user_display.rb
solidus_core-3.4.3 lib/spree/permission_sets/user_display.rb
solidus_core-4.0.1 lib/spree/permission_sets/user_display.rb
solidus_core-4.0.0 lib/spree/permission_sets/user_display.rb
solidus_core-3.4.2 lib/spree/permission_sets/user_display.rb
solidus_core-3.2.7 lib/spree/permission_sets/user_display.rb
solidus_core-3.3.2 lib/spree/permission_sets/user_display.rb
solidus_core-3.4.1 lib/spree/permission_sets/user_display.rb
solidus_core-3.4.0 lib/spree/permission_sets/user_display.rb
solidus_core-3.3.1 lib/spree/permission_sets/user_display.rb
solidus_core-3.2.6 lib/spree/permission_sets/user_display.rb