mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 09:09:02 +00:00
fix yet another thinko
This commit is contained in:
parent
57744b54c4
commit
d775c3b22b
|
@ -774,7 +774,7 @@ func (org *User) accessibleReposEnv(e Engine, userID int64) (AccessibleReposEnvi
|
||||||
|
|
||||||
func (env *accessibleReposEnv) cond() builder.Cond {
|
func (env *accessibleReposEnv) cond() builder.Cond {
|
||||||
var cond = builder.NewCond()
|
var cond = builder.NewCond()
|
||||||
if env.user != nil && !env.user.IsRestricted {
|
if env.user == nil || !env.user.IsRestricted {
|
||||||
cond = cond.Or(builder.Eq{
|
cond = cond.Or(builder.Eq{
|
||||||
"`repository`.owner_id": env.org.ID,
|
"`repository`.owner_id": env.org.ID,
|
||||||
"`repository`.is_private": false,
|
"`repository`.is_private": false,
|
||||||
|
|
Loading…
Reference in a new issue