Skip to content

Commit c2105e3

Browse files
committed
clean up
1 parent 66dbe4b commit c2105e3

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

models/user/user.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,14 @@ type User struct {
144144
NumRepos int
145145

146146
// For organization
147-
NumTeams int
148-
NumMembers int
149-
Visibility structs.VisibleType `xorm:"NOT NULL DEFAULT 0"`
150-
RepoAdminChangeTeamAccess bool `xorm:"NOT NULL DEFAULT false"`
147+
NumTeams int
148+
NumMembers int
149+
Visibility structs.VisibleType `xorm:"NOT NULL DEFAULT 0"`
150+
151+
// Introduced by "Add teams to repo on collaboration page. (#8045)"
152+
// Whether a repo admin can manage add/remove the repo to/from a team on the collaboration page
153+
// Although this should be a team setting .....
154+
RepoAdminChangeTeamAccess bool `xorm:"NOT NULL DEFAULT false"`
151155

152156
// Preferences
153157
DiffViewStyle string `xorm:"NOT NULL DEFAULT ''"`

0 commit comments

Comments
 (0)