This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Display error when adding a user to a team twice (
#4746
)
master
Lanre Adelowo
Lauris BH
6 years ago
parent
b1ad5734c6
commit
a6cdda115d
2 changed files
with
7 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
options/locale/locale_en-US.ini
+6
-1
routers/org/teams.go
+ 1
- 0
options/locale/locale_en-US.ini
View File
@@ -1312,6 +1312,7 @@ teams.search_repo_placeholder = Search repository…
teams.add_team_repository = Add Team Repository
teams.remove_repo = Remove
teams.add_nonexistent_repo = "The repository you're trying to add does not exist; please create it first."
teams.add_duplicate_users = User is already a team member.
[admin]
dashboard = Dashboard
+ 6
- 1
routers/org/teams.go
View File
@@ -96,7 +96,12 @@ func TeamsAction(ctx *context.Context) {
return
}
err = ctx.Org.Team.AddMember(u.ID)
if ctx.Org.Team.IsMember(u.ID) {
ctx.Flash.Error(ctx.Tr("org.teams.add_duplicate_users"))
} else {
err = ctx.Org.Team.AddMember(u.ID)
}
page = "team"
}
Write
Preview
Loading…
Cancel
Save