提交 99fbdae1 编写于 作者: U Ulric Qin

refactor boardPutConfigs

上级 aa26ddfb
......@@ -144,7 +144,14 @@ func boardPutConfigs(c *gin.Context) {
ginx.BindJSON(c, &f)
me := c.MustGet("user").(*models.User)
bo := Board(ginx.UrlParamInt64(c, "bid"))
bid := ginx.UrlParamStr(c, "bid")
bo, err := models.BoardGet("id = ? or ident = ?", bid, bid)
ginx.Dangerous(err)
if bo == nil {
ginx.Bomb(http.StatusNotFound, "No such dashboard")
}
// check permission
bgrwCheck(c, bo.GroupId)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册