Sha256: 0846bf6fa90c77b6303a4c11f69336ba1e38b06f2586860d50f6aa36d5eda962

Contents?: true

Size: 534 Bytes

Versions: 16

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

module Spree
  module PermissionSets
    # Read-only permissions for users, roles and store credits.
    #
    # This permission set allows users to view all related information about
    # users, roles and store credits, also from the admin panel.
    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

16 entries across 16 versions & 1 rubygems

Version Path
solidus_core-4.3.4 lib/spree/permission_sets/user_display.rb
solidus_core-4.2.4 lib/spree/permission_sets/user_display.rb
solidus_core-4.1.5 lib/spree/permission_sets/user_display.rb
solidus_core-4.3.3 lib/spree/permission_sets/user_display.rb
solidus_core-4.3.2 lib/spree/permission_sets/user_display.rb
solidus_core-4.1.4 lib/spree/permission_sets/user_display.rb
solidus_core-4.3.1 lib/spree/permission_sets/user_display.rb
solidus_core-4.3.0 lib/spree/permission_sets/user_display.rb
solidus_core-4.2.3 lib/spree/permission_sets/user_display.rb
solidus_core-4.1.3 lib/spree/permission_sets/user_display.rb
solidus_core-4.1.2 lib/spree/permission_sets/user_display.rb
solidus_core-4.2.2 lib/spree/permission_sets/user_display.rb
solidus_core-4.2.1 lib/spree/permission_sets/user_display.rb
solidus_core-4.2.0 lib/spree/permission_sets/user_display.rb
solidus_core-4.1.1 lib/spree/permission_sets/user_display.rb
solidus_core-4.1.0 lib/spree/permission_sets/user_display.rb