🔧 refactor(model): change user group retrieval to non-strict mode
This commit is contained in:
@@ -130,7 +130,7 @@ func ListModels(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
userId := c.GetInt("id")
|
userId := c.GetInt("id")
|
||||||
userGroup, err := model.GetUserGroup(userId, true)
|
userGroup, err := model.GetUserGroup(userId, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.JSON(http.StatusOK, gin.H{
|
c.JSON(http.StatusOK, gin.H{
|
||||||
"success": false,
|
"success": false,
|
||||||
|
|||||||
Reference in New Issue
Block a user