修复普通用户访问非自己创建的资产无法打开原生ssh的bug

This commit is contained in:
dushixiang
2021-05-16 17:32:21 +08:00
committed by dushixiang
parent f8c29b23b9
commit d33779ac34
5 changed files with 21 additions and 38 deletions

View File

@ -133,7 +133,6 @@ func SetupRoutes(db *gorm.DB) *echo.Echo {
assets.PUT("/:id", AssetUpdateEndpoint)
assets.DELETE("/:id", AssetDeleteEndpoint)
assets.GET("/:id", AssetGetEndpoint)
assets.GET("/:id/attributes", AssetGetAttributeEndpoint)
assets.POST("/:id/change-owner", Admin(AssetChangeOwnerEndpoint))
}