gems spree 5.2.1
v5.2.1

3 hours ago

Permission sets - new way to manage role-based permissions

This patch release contains several fixes and a nice new feature Permission Sets a new way to customize role-based permissions in Spree. Permission Sets provide a clean, modular way to manage permissions. Each permission set is a reusable group of permissions that can be assigned to roles.

Old customizations will work as before. To switch to the new system you'll need to add below lines to your config/initializers/spree.rb file:

Rails.application.config.after_initialize do
  Spree.permissions.assign(:default, [Spree::PermissionSets::DefaultCustomer])
  Spree.permissions.assign(:admin, [Spree::PermissionSets::SuperUser])
end

To update your Spree version please run:

bundle update

in your project root directory. If you're on Spree 5.1 or older, please follow Spree 5.2 upgrade guide.

Other changes

Core

Admin Dashboard

Documentation

New Contributors

Full Changelog: v5.2.0...v5.2.1

Don't miss a new spree release

NewReleases is sending notifications on new releases.