12-19-2016, 02:37 AM
Ok. So I've been thinking about your problem.
There are a few things to think about. If a person, is going to have access to more than one department, then you need to go into the users table and create a column called "department" and give it 1 for sales, 2 for quality, etc.
Otherwise if someone is only in one department, you can use the id of that permission level (which can be found when you click on the permission in the admin panel. 1 is user, 2 is admin by default, so I'm going to assume 3 is sales, etc. So...what you want to do is go to usersc/scripts/custom_login_script.php and edit it. It should look something like this...
http://pastebin.com/eapf3jFD
I hope that helps. Let me know if you need further explanation.
There are a few things to think about. If a person, is going to have access to more than one department, then you need to go into the users table and create a column called "department" and give it 1 for sales, 2 for quality, etc.
Otherwise if someone is only in one department, you can use the id of that permission level (which can be found when you click on the permission in the admin panel. 1 is user, 2 is admin by default, so I'm going to assume 3 is sales, etc. So...what you want to do is go to usersc/scripts/custom_login_script.php and edit it. It should look something like this...
http://pastebin.com/eapf3jFD
I hope that helps. Let me know if you need further explanation.