Welcome Guest, Not a member yet? Register   Sign In
pass variable through segments with security
#5

[eluser]Michael Wales[/eluser]
What exactly are you trying to secure here? If it's just an ID to content within the database - just check if that content exists and if not throw a 404.

If users are limited as to the content they can see (for instance, you can see id=1 and id=2 but I can only see id=2) you will just need to make a call to the database to confirm authorization. If they are not authorized, throw a 403. This is best accomplished using an extended Controller or a pre-controller hook.


Messages In This Thread
pass variable through segments with security - by El Forum - 05-07-2009, 12:05 AM
pass variable through segments with security - by El Forum - 05-07-2009, 12:49 AM
pass variable through segments with security - by El Forum - 05-07-2009, 03:17 AM
pass variable through segments with security - by El Forum - 05-07-2009, 05:25 AM
pass variable through segments with security - by El Forum - 05-07-2009, 06:24 AM
pass variable through segments with security - by El Forum - 06-13-2010, 08:50 AM
pass variable through segments with security - by El Forum - 06-13-2010, 09:42 AM
pass variable through segments with security - by El Forum - 06-14-2010, 06:01 PM
pass variable through segments with security - by El Forum - 06-20-2010, 04:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB