solidus_user_roles icon indicating copy to clipboard operation
solidus_user_roles copied to clipboard

uninitialized constant Spree::PermissionSets::StockTransferDisplay (NameError)

Open afdev82 opened this issue 6 years ago • 3 comments

I get this error after upgrading the extension for Solidus, from v2.4 to v2.7 I found why: https://github.com/solidusio/solidus/commit/0e83b33f710b7112a237ac23560b667f0e0fbf6a#diff-6d403e04474bc828ef62de534aafb9d6 They removed the StockTransfer functionality from core. I think it would be nice to provide a task to upgrade that will check and updates the permission sets in the db or at least mention it in the README, how to solve this problem. For the moment I deleted them from the spree_permission_sets table.

afdev82 avatar Oct 08 '18 13:10 afdev82

We are testing out https://github.com/geminimvp/solidus_user_roles/pull/7 in our fork, which would tolerate this error without blowing up during startup.

fastjames avatar Oct 01 '19 15:10 fastjames

I submitted our fix to this repo as https://github.com/boomerdigital/solidus_user_roles/pull/28 so it should fix your problem.

fastjames avatar Oct 04 '19 14:10 fastjames

Thank you, but

I think it would be nice to provide a task to upgrade that will check and updates the permission sets in the db or at least mention it in the README, how to solve this problem.

Anyway this repo doesn't seem to be so active... I understand the need to have a quick solution.

afdev82 avatar Oct 07 '19 07:10 afdev82