I'm developing a application in Code Igniter and a problem come by:
I have several functions that access the database, that are routed like this:
controller/function/variable employess/deleteEmployee/4
So, anyone that put this on the url gonna delete the employee.
How can I manage to allow only a logged admin user to access this functions? Is there a simple and well accepted way? I must check every time if there is a user logged in and this user have the permission?
Regards,