╭ changed ──────╮ │src/ui/Repo.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │208 } else { │ │209 const haxy_moment = session.haxy_moment orelse return error.NoMoment; │ │210 const found = (try evt.Repo.readByOwnerAndName(DB, hash_kind, haxy_moment, arena, repo_identity.owner, repo_identity.name)) orelse return error.NotFound;│ │211 + // a repo the session can't read doesn't exist to it │ │212 + if (evt.Repo.roleOf(found.repo, session.userId()) == .none) return error.NotFound; │ │213 repo = found.repo; │ │214 repo_id_maybe = found.event_id; │ │215 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯