修复普通用户访问非自己创建的资产无法打开原生ssh的bug
This commit is contained in:
@ -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))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user