Page 1 of 1

User can only see data related to him

Posted: 2021-01-21 09:46
by ayussuf
Hello,

How to make user can only see data related to him.

Let say there are student and teacher located in different tables.

How do I make every teacher can I only see students that was already assigned to him by admin ?

And vice versa, students can only see their assigned teacher?

Thanks.