Receiving no data for collection with read access priviledge

Here’s a github gist of this question. https://gist.github.com/vicradon/9eedc365dd76df363aad7552bf578c4a

Asking it directly won’t work because of Akismet

You are missing a Var wrapper around “ref”: Equals(Select(["data", "metadata", "role"], Get(Var("ref"))), "student")

Thank you for helping me resolve the issue