Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap 4 years ago
parent
commit
edfe2259d5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/ai_model_manage.go

+ 1
- 1
routers/repo/ai_model_manage.go View File

@@ -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


Loading…
Cancel
Save