|
|
|
@@ -404,7 +404,7 @@ func ShowModelTemplate(ctx *context.Context) { |
|
|
|
|
|
|
|
func isQueryRight(ctx *context.Context) bool { |
|
|
|
if ctx.Repo.Repository.IsPrivate { |
|
|
|
if ctx.User.IsAdmin || ctx.Repo.IsAdmin() || ctx.Repo.IsOwner() || ctx.Repo.CanAccess(models.UnitTypeCloudBrain) { |
|
|
|
if ctx.User.IsAdmin || ctx.Repo.IsAdmin() || ctx.Repo.IsOwner() || ctx.Repo.CanRead(models.UnitTypeCloudBrain) { |
|
|
|
return true |
|
|
|
} |
|
|
|
return false |
|
|
|
|