如何在Drupal 7中实际查看自己未发布的内容?

发布于 2024-11-07 22:24:45 字数 840 浏览 0 评论 0原文

根据 http://drupal.org/node/1106606 上的文档“通过启用‘查看自己的未发布的content',您授予用户访问他们自己未发布的内容的权限。”很好,但是拥有该权限的用户如何才能真正找到自己未发布的内容呢?

我有一个 Drupal 7 站点,我创建了一个用户,然后为其授予“内容编辑器”和“博客作者”角色。我检查了权限,这些角色设置了“查看自己未发布的内容”。以及“查看管理仪表板”等权限。请参阅以下屏幕截图:

http://www.flickr.com/photos/64416865 @N00/5736169925/

http://www.flickr.com/photos/64416865@N00/5736720168/

但是,仅具有“内容编辑者”+“博客作者”角色的用户无法看到任何可以单击查看她的链接未发布的内容。我可以以管理员身份登录,然后看到管理覆盖层,我可以看到顶部的“查找内容”链接,我可以访问 /admin/content。但是该其他用户无法看到该管理覆盖层,并且当尝试访问 /admin/content 时,她会收到“访问被拒绝,您无权访问此页面”。信息。

我是否缺少某些权限?还是我忘记了其他事情?具有“查看自己的未发布内容”权限集的非管理员用户如何实际看到其未发布内容项的列表?

According to the documentation at http://drupal.org/node/1106606 "By enabling 'View own unpublished content', you grant users access to their own unpublished content." Great, but then how can a user with that permission actually find her own unpublished content?

I have a Drupal 7 site and I created a user, then gave 'Content Editor' and 'Blogger' roles to it. I checked the permissions and those roles have 'View own unpublished content' set. Along with permissions such as 'View the administrative dashboard'. Please see the following screen shots:

http://www.flickr.com/photos/64416865@N00/5736169925/

http://www.flickr.com/photos/64416865@N00/5736720168/

However the user that has only 'Content Editor' + 'Blogger' roles cannot see any link on which she can click to see her unpublished content. I can log in as an administrator, then I see the administrative overlay, I can see the 'Find content' link on top, I can visit /admin/content. But that other user cannot see that administrative overlay and when tries to visit /admin/content she receives "Access denied You are not authorized to access this page." message.

Am I missing some permissions? Or did I forget some other thing? How can a non-admin user with 'View own unpublished content' permission set actually see the list of her unpublished content items?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冰雪梦之恋 2024-11-14 22:24:46

更新:基于一些建议并意识到我的第一个解决方案的安全隐患,我取消了它,安装了视图并创建了一个视图,该视图显示按作者=当前用户过滤的未发布的博客条目。我认为这与“Drupal 方式”更兼容。

显然还需要设置“访问内容概览页”权限!这样用户就可以访问管理/内容。

UPDATE: Based on some suggestions and realising the security implications of my first solution I undid it, installed the Views and created a view which shows unpublished blog entries filtered by author = current user. I think this is much more compatible with the 'Drupal way'.

Apparently one also needs to set 'Access the content overview page' permission! So that the user can access admin/content.

卖梦商人 2024-11-14 22:24:46

默认情况下,Drupal 不会创建未发布内容的列表;因此,没有这样的列表。如果您不想为内容编辑器和 Blogger 用户授予内容列表的管理员权限,您可以尝试创建一个视图来列出所有用户未发布的内容,并使该视图可供用户使用,以便他/她可以查看名单。

Drupal doesn't create a list of unpublished content by default; therefore, there is no such listing. If you don't want to give admin permissions to the content listing for your Content Editor and Blogger users, you can try creating a View to list all the user's unpublished content and make the view available to the user so that he/she can see the list.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文