andrewculver / koudoku

Robust subscription support for Rails with Stripe.
MIT License
1.16k stars 187 forks source link

Strange redirect to Unauthorized #203

Closed Kashoid23 closed 4 years ago

Kashoid23 commented 4 years ago

I don't need action cancel (cancel subscription) but when I specify specific actions through Can can can gem

Before:

can :manage, Subscription

After:

can [:index, :show, :edit, :update, :new, :create], Subscription

it redirects me to Unauthorized

Filter chain halted as: load_subscription rendered or redirected
Completed 401 Unauthorized in 466ms (Views: 262.0ms | ActiveRecord: 56.0ms | Allocations: 173633)