mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🧑💻 Add field disabledInPublish to the marketplace package metadata to indicate whether it is disabled in the publishing service https://github.com/siyuan-note/siyuan/issues/11730
This commit is contained in:
parent
9410a70a2b
commit
6ff4439be3
4 changed files with 26 additions and 22 deletions
|
|
@ -35,9 +35,9 @@ func loadPetals(c *gin.Context) {
|
|||
}
|
||||
|
||||
frontend := arg["frontend"].(string)
|
||||
isPublish := model.IsReadOnlyRole(model.GetGinContextRole(c))
|
||||
|
||||
petals := model.LoadPetals(frontend)
|
||||
ret.Data = petals
|
||||
ret.Data = model.LoadPetals(frontend, isPublish)
|
||||
}
|
||||
|
||||
func setPetalEnabled(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue