Hi all! I'm trying out Keto. I have this OPL ```...
# talk-keto
a
Hi all! I'm trying out Keto. I have this OPL
Copy code
class Project implements Namespace {
  related: {
    companies: Company[]
  }

  permits = {
    view: (ctx: Context) => this.related.companies.traverse(company => company.related.users.includes(ctx.subject))
  }
}

class User implements Namespace {}

class Company implements Namespace {
  related: {
    users: User[]
  }
}
So User has view permit on Project if he is in Company. I have these two relations which define a Project, User and Company:
Copy code
{
			"namespace": "Company",
			"object": "zenmo",
			"relation": "users",
			"subject_id": "User:erik"
		},
		{
			"namespace": "Project",
			"object": "myproj",
			"relation": "companies",
			"subject_id": "Company:zenmo"
		}
Yet when i do a permission check like so:
Copy code
POST /relation-tuples/check/openapi
{
    "namespace": "Project",
    "object": "myproj",
    "relation": "view",
	"subject_id": "User:erik"
}
It returns allowed: false What's going wrong? Is
includes
not implemented when inside
traverse
? (I know I can use SubjectSet here but it seems like a legitimate thing to do)