May be you are doing something wrong, can you share oml or demo, so that i can check
When you log in from Instructor role and on data action you are calling check instructor role
so your data action will return True and Your CheckInstructorRole boolean variable value will be True,
Now on Your visibility property your condition will be like CheckInstructorRole.HasRole
I hope this is what you wanted