Class: Spree::PermissionSets::UserDisplay

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

Overview

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.

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



10
11
12
13
14
# File 'lib/spree/permission_sets/user_display.rb', line 10

def activate!
  can [:read, :admin, :edit, :addresses, :orders, :items], Spree.user_class
  can [:read, :admin], Spree::StoreCredit
  can :read, Spree::Role
end