Browse Source

Fixed missing ) in repo.go

pull/2423/head
ExMex 9 years ago
parent
commit
6c443d1a68
  1. 2
      routers/repo/repo.go

2
routers/repo/repo.go

@ -57,7 +57,7 @@ func checkContextUser(ctx *middleware.Context, uid int64) *models.User {
}
// Check ownership of organization.
if !org.IsOrganization() || !(ctx.User.IsAdmin || org.IsOwnedBy(ctx.User.Id) {
if !org.IsOrganization() || !(ctx.User.IsAdmin || org.IsOwnedBy(ctx.User.Id)) {
ctx.Error(403)
return nil
}

Loading…
Cancel
Save