Class: Spree::PermissionSets::SuperUser

Inherits:
Base
  • Object
show all
Defined in:
lib/spree/permission_sets/super_user.rb

Overview

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.

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Spree::PermissionSets::Base

Instance Method Details

#activate!Object



11
12
13
# File 'lib/spree/permission_sets/super_user.rb', line 11

def activate!
  can :manage, :all
end