Welcome Guest, Not a member yet? Register   Sign In
Auth control by uri request
#6

[eluser]webthink[/eluser]
Neat stuff. You wouldn't need to sit it within an action at all actually because the constructor would get called regardless of the action and then the check function would handle the permissions based on permissions for each action depending on the uri. So really all you'd need is $this->auth->check() in the constructor and assuming you remembered to add the appropriate permissions in the table all your actions would be covered.
Of course any custom routes might be worth thinking about.


Messages In This Thread
Auth control by uri request - by El Forum - 03-13-2008, 03:51 AM
Auth control by uri request - by El Forum - 03-13-2008, 05:53 AM
Auth control by uri request - by El Forum - 03-13-2008, 07:55 AM
Auth control by uri request - by El Forum - 03-13-2008, 08:03 AM
Auth control by uri request - by El Forum - 03-13-2008, 08:28 AM
Auth control by uri request - by El Forum - 03-13-2008, 08:53 AM
Auth control by uri request - by El Forum - 03-13-2008, 09:20 AM
Auth control by uri request - by El Forum - 03-13-2008, 09:24 AM
Auth control by uri request - by El Forum - 03-13-2008, 09:33 AM
Auth control by uri request - by El Forum - 04-16-2008, 03:27 AM
Auth control by uri request - by El Forum - 07-12-2008, 08:26 AM
Auth control by uri request - by El Forum - 07-12-2008, 04:07 PM
Auth control by uri request - by El Forum - 07-13-2008, 01:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB