Sha256: 89945b8b75a2db09bfd84f3efd590b691b1b0b476a422c9b9ba93556a0f32b4f

Contents?: true

Size: 207 Bytes

Versions: 14

Compression:

Stored size: 207 Bytes

Contents

module Alchemy
  module Solidus
    module SpreeUserExtension
      def alchemy_roles
        if has_spree_role?(:admin)
          %w(admin)
        else
          []
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
alchemy-solidus-3.2.0 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-3.1.1 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-3.1.0 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-3.0.2 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-3.0.1 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-3.0.0 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-2.5.1 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-2.5.0 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-2.4.0 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-2.3.2 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-2.3.1 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-2.3.0 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-2.2.0 lib/alchemy/solidus/spree_user_extension.rb
alchemy-solidus-2.0.0 lib/alchemy/solidus/spree_user_extension.rb