Contributor title: an account made from a member's invite key can take the member's title

Đang mở
#3,687 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
authentication, backend

Hướng nghiên cứu

Start with the operations sync that writes contributors.json and fills members[].accounts, then trace how /contributor here builds the member's group from that file — the contributor.go header comment describes the invite-key link you need to exclude. Compare that group-construction path against the OAuth sign-in records so you can tell an invite-linked account from a member-linked one. Done means the group only includes OAuth-linked accounts, plus a test asserting an invite-linked account gets ErrNotInGroup and a 404 from the website path.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: server bug priority: medium

The Contributor title (#3358, owner 2026-11-14 #3488) sits on one account per member, which the member can move "to another of their own". A member's group (contributors.json members[].accounts, written by the operations sync) holds every account linked to the member's Discord id. That includes accounts created from the member's invite keys (contributor.go header: "invite keys link any number of accounts to one Discord id").

An invite-made link is the key giver's Discord, not the player's (opensro-web#105, the account overview treats it as none). So a friend who signed up with the member's key is in the member's group, and can move the yellow title onto their own account: /contributor here in chat today, and the website's Carry it here once #3660 and web#154 land.

Fix

The group should hold only accounts linked by the member's own Discord sign-in (OAuth), not those linked through an invite key. That is the operations sync's input, plus a test that an invite-linked account gets ErrNotInGroup and answers 404 on the website.

Ngôn ngữ chính
Go
Star
97
Fork
61
Merge trung bình
4 giờ 14 phút
Pull request đã merge (30 ngày)
913

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của opensro-dev/opensro

Tất cả issue của opensro-dev/opensro

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.