mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
feat(wip): site category
This commit is contained in:
parent
ed3c02fc6f
commit
7ad5cac3b8
73 changed files with 713 additions and 235 deletions
|
@ -17,7 +17,7 @@ func GetUsers(c *gin.Context) {
|
|||
}
|
||||
|
||||
func GetUser(c *gin.Context) {
|
||||
id := cast.ToInt(c.Param("id"))
|
||||
id := cast.ToUint64(c.Param("id"))
|
||||
|
||||
u := query.User
|
||||
|
||||
|
@ -69,7 +69,7 @@ func AddUser(c *gin.Context) {
|
|||
}
|
||||
|
||||
func EditUser(c *gin.Context) {
|
||||
userId := cast.ToInt(c.Param("id"))
|
||||
userId := cast.ToUint64(c.Param("id"))
|
||||
|
||||
if settings.NodeSettings.Demo && userId == 1 {
|
||||
c.JSON(http.StatusNotAcceptable, gin.H{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue