We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.20.0
问题 在首页 index.html 中,使用该页面模板自带的 post.items 遍历时,目录会根据登录状态而决定是否显示 “私有” 文章。但是,如果使用 FinderApi 的 postFinder.listAll() 时,无论登录与否,它就只显示公开的文章。
index.html
post.items
postFinder.listAll()
建议 给 postFinderApi 也添加和页面模板中一样的权限控制,即根据登录状态决定是否包含私有文章。
No response
The text was updated successfully, but these errors were encountered:
/kind improvement /area core
Sorry, something went wrong.
大佬,还是这个 FinderApi 权限控制问题,我就不重新提 issue了。不过这次不是 postFinder.listAll() 而是 postFinder.getByName(postName) 麻烦帮我看下目前条件下有什么替代方案能实现下面的需求。
postFinder.getByName(postName)
post.metadata.name
post.contnt.content
posts : [UrlContextListResult<ListedPostVo>]
<ListedPostVo>
PostVo
excerpt
content.contnet
postVo
No branches or pull requests
前置条件
你当前使用的版本
2.20.0
描述一下此特性
问题
在首页
index.html
中,使用该页面模板自带的post.items
遍历时,目录会根据登录状态而决定是否显示 “私有” 文章。但是,如果使用 FinderApi 的postFinder.listAll()
时,无论登录与否,它就只显示公开的文章。建议
给 postFinderApi 也添加和页面模板中一样的权限控制,即根据登录状态决定是否包含私有文章。
附加信息
No response
The text was updated successfully, but these errors were encountered: