You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 8, 2026. It is now read-only.
However, when the authorization failures come from exceptions from CanCan's authorize! method, spree calls a method named redirect_unauthorized_access. So if you access certain backend features, you might be redirected to the frontend login instead.
Maybe a alias_method :redirect_unauthorized_access, :unauthorized in the admin_controller_decorator would already fix this.
So spree_auth_devise already patches
Spree::Admin::BaseController#unauthorizedsuch that unauthorized actions go to the backend login form.However, when the authorization failures come from exceptions from CanCan's
authorize!method, spree calls a method namedredirect_unauthorized_access. So if you access certain backend features, you might be redirected to the frontend login instead.Maybe a
alias_method :redirect_unauthorized_access, :unauthorizedin the admin_controller_decorator would already fix this.