I'm trying to achieve the following:
We have different schools with different students. When a school logs in and tries to enroll a student into a course, we only want to them to see the students from that school. We achieved this by checking the institution. But now there's the problem. An admin must see all student so we want to build an IF construction:
if (user = admin)
// show all
// check institution
Is there a nice and clean way to check the roll (admin/student etc), so we can build this if construction?
Thanks in advance.