mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
f293933802
commit
8bdd59a156
4 changed files with 14 additions and 2 deletions
|
|
@ -381,6 +381,10 @@ func getBootSync(c *gin.Context) {
|
|||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
if !model.IsAdminRoleContext(c) {
|
||||
return
|
||||
}
|
||||
|
||||
if model.Conf.Sync.Enabled && 1 == model.BootSyncSucc {
|
||||
ret.Code = 1
|
||||
ret.Msg = model.Conf.Language(17)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue