CodeIgniter Forums
help with role based authentication - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: help with role based authentication (/showthread.php?tid=26243)

Pages: 1 2


help with role based authentication - El Forum - 01-12-2010

[eluser]jbreitweiser[/eluser]
Both techniques should be used. Do not show people buttons there not supposed to use because they will try them, even if it is just to see what it does. But you should also throw an error on the page because you can alway dummy up a post that simulates clicking the button with some common tools from the internet.


help with role based authentication - El Forum - 01-12-2010

[eluser]Udi[/eluser]
Don't show the button, and inside the controller check if the user can access this page.