This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
fix bu ong normal user visit public repo (
#1984
)
for-closed-social
Lunny Xiao
7 years ago
committed by
GitHub
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