Sha256: 2276e015be12ef7af18eb283ca5e684fa347f954e4d8569c06ae0ac1c9577ac9

Contents?: true

Size: 401 Bytes

Versions: 16

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

module Spree
  module PermissionSets
    # Full permissions for store administration.
    #
    # This permission set is always added to users with the `:admin` role.
    #
    # It grants permission to perform any read or write action on any resource.
    class SuperUser < PermissionSets::Base
      def activate!
        can :manage, :all
      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/super_user.rb
solidus_core-4.2.4 lib/spree/permission_sets/super_user.rb
solidus_core-4.1.5 lib/spree/permission_sets/super_user.rb
solidus_core-4.3.3 lib/spree/permission_sets/super_user.rb
solidus_core-4.3.2 lib/spree/permission_sets/super_user.rb
solidus_core-4.1.4 lib/spree/permission_sets/super_user.rb
solidus_core-4.3.1 lib/spree/permission_sets/super_user.rb
solidus_core-4.3.0 lib/spree/permission_sets/super_user.rb
solidus_core-4.2.3 lib/spree/permission_sets/super_user.rb
solidus_core-4.1.3 lib/spree/permission_sets/super_user.rb
solidus_core-4.1.2 lib/spree/permission_sets/super_user.rb
solidus_core-4.2.2 lib/spree/permission_sets/super_user.rb
solidus_core-4.2.1 lib/spree/permission_sets/super_user.rb
solidus_core-4.2.0 lib/spree/permission_sets/super_user.rb
solidus_core-4.1.1 lib/spree/permission_sets/super_user.rb
solidus_core-4.1.0 lib/spree/permission_sets/super_user.rb