Skip to content

DEFAULT_ORG_MEMBER_VISIBLE ignored for first org member #30012

@DrMaxNix

Description

@DrMaxNix

Description

The first org member (the creator) is being added when the org is created CreateOrganization():

if err = db.Insert(ctx, &OrgUser{
UID: owner.ID,
OrgID: org.ID,
}); err != nil {

Any new member is being added using another method AddOrgUser():

ou := &OrgUser{
UID: uid,
OrgID: orgID,
IsPublic: setting.Service.DefaultOrgMemberVisible,
}

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions