Removing role has effect only after reconnect

I have an user with the role “courseUser-courseid” and a course with the corresponding role on read access. When removing the role from the user. The user can still query for and fetch the course.

I can sign in and out however I want, only when I use ParseClient.Connect() once more (c# sdk) I can no longer fetch the object. The database has been updated so why does parse server return the object when the user does not have the right roles??

Can you share your example codes?