There is a database called "user" in mysql and there is a "role" column in the user database and each user is assigned a role 1-3. 3 is the role assigned for students.
In my file, I want to do something like:
if the role of user is student (3)
window.location = '/student_dashboard';
window.location = '/other_dashboard';
How can I do this in the file?