mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
fix bu ong normal user visit public repo (#1984)
This commit is contained in:
parent
8fc64741d9
commit
e2ec4b7c23
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ func (repo *Repository) getUnitsByUserID(e Engine, userID int64, isAdmin bool) (
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !repo.Owner.IsOrganization() || userID == 0 || isAdmin {
|
if !repo.Owner.IsOrganization() || userID == 0 || isAdmin || !repo.IsPrivate {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue