╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2075 │ │2076 const owner_repo = evt.parseOwnerRepoPath(identity) orelse return .repo_not_found; │ │2077 const repo = (try evt.readRepoByOwnerAndName(io, arena.child_allocator, arena, moment, users_dir, owner_repo.owner, owner_repo.name, user_id)) orelse return .repo_not_found;│ │2078 - const role = repo.role; │ │2078 // a repo the user can't read doesn't exist to them │ │2080 - if (role == .none) return .repo_not_found; │ │2079 + const role = repo.role orelse return .repo_not_found; │ │2080 if (!role.atLeast(min_role)) return .forbidden; │ │2081 return .{ .actor = .{ │ │2082 .author = .{ .name = user.event.name, .email = user.event.email }, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯