开发者

Rails - authorization based on subscription

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜