开发者

Rails - authorization based on subscription

开发者 https://www.devze.com 2023-01-27 08:12 出处:网络
I need to lim开发者_运维技巧it the content available to a user based on there subscriptions. Which rail authorization plugin will be best ?

I need to lim开发者_运维技巧it the content available to a user based on there subscriptions. Which rail authorization plugin will be best ?

I normally use declarative authorization but I dont think it is suited to this task.

Thanks, Alex


I agree with you. For the same reason, I am using cancan now as it is really flexible and requires me less time to mess around.


You could try:

Fat Model Auth

Its very flexable.

I think you might need a level of logic above any plugin. I would define a subscription model, (you probably already have one), then I would define which resources are available to a subscription. You might want to put this in the db if you think it will change a lot.

0

精彩评论

暂无评论...
验证码 换一张
取 消