fix: editing buttons showing up even if no action is allowed (#2043)
* feat: Edit / Page Create Buttons showing up even if no action is allowed #1780
This commit is contained in:
@@ -18,4 +18,5 @@ block body
|
||||
init-editor=page.editorKey
|
||||
init-content=page.content
|
||||
checkout-date=page.updatedAt
|
||||
effective-permissions=Buffer.from(JSON.stringify(effectivePermissions)).toString('base64')
|
||||
)
|
||||
|
@@ -17,4 +17,5 @@ block body
|
||||
:author-id=page.authorId
|
||||
:is-published=page.isPublished.toString()
|
||||
live-content=page.content
|
||||
effective-permissions=Buffer.from(JSON.stringify(effectivePermissions)).toString('base64')
|
||||
)
|
||||
|
@@ -26,7 +26,7 @@ block body
|
||||
sidebar=Buffer.from(JSON.stringify(sidebar)).toString('base64')
|
||||
nav-mode=config.nav.mode
|
||||
comments-enabled=config.features.featurePageComments
|
||||
comments-permissions=Buffer.from(JSON.stringify(commentsPermissions)).toString('base64')
|
||||
effective-permissions=Buffer.from(JSON.stringify(effectivePermissions)).toString('base64')
|
||||
comments-external=comments.codeTemplate
|
||||
)
|
||||
template(slot='contents')
|
||||
|
@@ -10,4 +10,5 @@ block body
|
||||
path=page.path
|
||||
:version-id=page.versionId
|
||||
version-date=page.versionDate
|
||||
effective-permissions=Buffer.from(JSON.stringify(effectivePermissions)).toString('base64')
|
||||
)= page.content
|
||||
|
Reference in New Issue
Block a user