Routes

edited July 2015 in Modules
Hello! I have just noticed a bug in my application.
I have in routes:
$route['dashboard/admin'] = 'dashboardadmin';
$route['dashboard/admin/global_settings'] = 'dashboardadmin/global_settings';
I have in my application a controller called dashboardadmin where it is a functioon called global_settings.
The thing is that I can access that page from 2 different links: dasboardadmin/global_settings and dashboard/admin/global_settings. The second one isn't accessible to the normal users but seems that the first one is accessible. That page should be available only to admin users.
How can I force the application to use only routes?

Comments

Sign In or Register to comment.