-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Description
Description
The first org member (the creator) is being added when the org is created CreateOrganization()
:
gitea/models/organization/org.go
Lines 321 to 324 in 5c91d79
if err = db.Insert(ctx, &OrgUser{ | |
UID: owner.ID, | |
OrgID: org.ID, | |
}); err != nil { |
Any new member is being added using another method AddOrgUser()
:
gitea/models/organization/org.go
Lines 575 to 579 in 5c91d79
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