Rails subscription limitations
Posted
by David Lyod
on Stack Overflow
See other posts from Stack Overflow
or by David Lyod
Published on 2010-06-17T17:40:03Z
Indexed on
2010/06/17
17:43 UTC
Read the original article
Hit count: 122
ruby-on-rails
|declarative-authorization
I have an application with set limits on subscription attributes i/e a user can have five projects for subscription A but have ten for subscription B
At present I run a check on there current usage when linking to the create action and if they are over there limit I do not display the link to create a new project. On the view (for the new project ) I again run the check (in a helper) to see if they can create a new project and if they are not I display a message stating so and a little upgrade link.
Is this a secure method of stopping a user bypassing there subscription attribute limitations ?
What about direct PUT requests etc ?
© Stack Overflow or respective owner