╭ changed ────────────╮ │src/ui/Repo/Roles.zig│ ╰─────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │51 var next_start: ?usize = null; │ │52 for (grants) |grant| { │ │53 // the creator owns the repo with or without a grant │ │54 - if (grant.role == .read or std.mem.eql(u8, grant.user_id, owner_id)) continue; │ │55 - const user = (try evt.User.readById(evt.AdminDB, evt.admin_repo_opts.hash, admin_moment, arena, grant.user_id)) orelse continue;│ │54 + const user_id = try evt.parseEventId(&grant.user_id); │ │55 + if (grant.role == .read or std.mem.eql(u8, &user_id, owner_id)) continue; │ │56 + const user = (try evt.User.readById(evt.AdminDB, evt.admin_repo_opts.hash, admin_moment, arena, &user_id)) orelse continue; │ │57 if (user.removed) continue; │ │58 if (skipped < start) { │ │59 skipped += 1; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯