This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
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
add Owner to Context.Repo
tags/v1.2.0-rc1
slene
11 years ago
parent
7ca8306775
commit
f18c8fc4d9
2 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
modules/middleware/context.go
+2
-0
modules/middleware/repo.go
+ 1
- 0
modules/middleware/context.go
View File
@@ -34,6 +34,7 @@ type Context struct {
IsValid bool
IsOwner bool
Repository *models.Repository
Owner *models.User
}
}
+ 2
- 0
modules/middleware/repo.go
View File
@@ -51,6 +51,8 @@ func RepoAssignment(redirect bool) martini.Handler {
return
}
ctx.Repo.Owner = user
// get repository
repo, err := models.GetRepositoryByName(user, params["reponame"])
if err != nil {
Write
Preview
Loading…
Cancel
Save