mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
c9dcfafc68
commit
4e9b0bc6c6
5 changed files with 15 additions and 5 deletions
|
|
@ -590,6 +590,10 @@ func getCloudUser(c *gin.Context) {
|
|||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
if !model.IsAdminRoleContext(c) {
|
||||
return
|
||||
}
|
||||
|
||||
arg, ok := util.JsonArg(c, ret)
|
||||
if !ok {
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue