mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
c9dcfafc68
commit
4e9b0bc6c6
5 changed files with 15 additions and 5 deletions
|
|
@ -382,6 +382,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