DEFAULT_ORG_MEMBER_VISIBLE ignored for first org member #12713

Closed
opened 2025-11-02 10:18:51 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @DrMaxNix on GitHub (Mar 22, 2024).

Description

The first org member (the creator) is being added when the org is created CreateOrganization():
5c91d7920f/models/organization/org.go (L321-L324)

Any new member is being added using another method AddOrgUser():
5c91d7920f/models/organization/org.go (L575-L579)

Note that the default dataset of these differ. Namely, the dataset of the first member does not respect the default value for visibility.

Gitea Version

main

Originally created by @DrMaxNix on GitHub (Mar 22, 2024). ### Description The first org member (the creator) is being added when the org is created `CreateOrganization()`: https://github.com/go-gitea/gitea/blob/5c91d7920f4aff08768e274269e211e926aa3d36/models/organization/org.go#L321-L324 Any new member is being added using another method `AddOrgUser()`: https://github.com/go-gitea/gitea/blob/5c91d7920f4aff08768e274269e211e926aa3d36/models/organization/org.go#L575-L579 Note that the default dataset of these differ. Namely, the dataset of the first member does not respect the default value for visibility. ### Gitea Version main
GiteaMirror added the type/bug label 2025-11-02 10:18:51 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12713