mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 10:54:25 +02:00
fix bu ong normal user visit public repo (#1984)
This commit is contained in:
1 parent
8fc64741d9
commit
e2ec4b7c23
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user