🎨 The Publishing service no longer support export https://github.com/siyuan-note/siyuan/issues/12928

This commit is contained in:
Daniel 2024-10-27 12:07:32 +08:00
parent 4e407b0ef8
commit 4a33fa9a29
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 51 additions and 33 deletions

View file

@ -429,7 +429,8 @@ func getConf(c *gin.Context) {
// REF: https://github.com/siyuan-note/siyuan/issues/11364
role := model.GetGinContextRole(c)
if model.IsReadOnlyRole(role) {
isPublish := model.IsReadOnlyRole(role)
if isPublish {
maskedConf.ReadOnly = true
}
if !model.IsValidRole(role, []model.Role{
@ -439,8 +440,9 @@ func getConf(c *gin.Context) {
}
ret.Data = map[string]interface{}{
"conf": maskedConf,
"start": !util.IsUILoaded,
"conf": maskedConf,
"start": !util.IsUILoaded,
"isPublish": isPublish,
}
}