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
fix bu ong normal user visit public repo (
#1984
)
tags/v1.21.12.1
Lunny Xiao
GitHub
9 years ago
parent
8fc64741d9
commit
e2ec4b7c23
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
models/repo.go
+ 1
- 1
models/repo.go
View File
@@ -359,7 +359,7 @@ func (repo *Repository) getUnitsByUserID(e Engine, userID int64, isAdmin bool) (
return err
}
if !repo.Owner.IsOrganization() || userID == 0 || isAdmin {
if !repo.Owner.IsOrganization() || userID == 0 || isAdmin
|| !repo.IsPrivate
{
return nil
}
Write
Preview
Loading…
Cancel
Save