mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 The Publishing service no longer support export https://github.com/siyuan-note/siyuan/issues/12928
This commit is contained in:
parent
4e407b0ef8
commit
4a33fa9a29
7 changed files with 51 additions and 33 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue