I am new to bonfire, I am developing a system that incorporates three users
- Admin
- Clients
- Agents
I have changed login destination for each above mentioned users in bf_roles table in database, but the issue is that the SITEAREA constant defined in constant.php file under application folder,is set to admin i.e
define('SITE_AREA', 'admin');
I want to define sitearea according to the respective users i.e for clients it should be
define('SITE_AREA',clients);
now with the default site area set to admin, I get this address whenever I login using clients credentials
http://localhost/pbx/index.php/admin/
How to dynamically change the site area for each user?