当文档库显示在 Web 部件中时,Sharepoint ECB 菜单项不可见
当直接从文档库访问时,我的文档上下文菜单可以正确显示,但当在 Web 部件中显示相同的文档库时,上下文菜单会缺少多个项目。我使用打开了所有权限的用户 ID 调试了 core.js 中的代码,并注意到当直接从文档库访问上下文菜单时但从文档库访问上下文菜单时,权限掩码已正确设置(为 0x7ffffffffffffff)在 Web 部件中,权限掩码为 0。
是否需要为 Web 部件和文档库授予用户权限?还有什么可以解释这种行为?
我们最近从 Sharepoint 2003 迁移到 Sharepoint 2007;此问题不会出现在我们的 SP 2003 站点中,仅出现在 SP 2007 中。
更新 1: 新信息可能会使一些现有的讨论过时:在我们的一些页面上,我们使用 SP 在您创建文档库时自动为您创建的 Web 部件来显示文档库(SP 确实这样做,对吗?我有点SP 新手,请耐心等待)。此 wepart 中显示的文档的上下文菜单工作正常,因为我们的用户已获得这些文档库的权限,并且 SP 给出了正确的权限掩码。
但是,我们还通过迭代与给定网站关联的列表来显示某些文档。我们的网络是这样的:
private SPWeb _web;
并像这样迭代每个列表:
foreach (SPList list in _web.Lists)
所以,我现在唯一的问题是,是否可能、必要和/或需要向 SP 列表以及文档分配权限库?
My document context menus display correctly when accessed directly from a document library but when this same doc lib is displayed in a web part, the context menu is missing various items. I debugged the code in core.js using a userid that had all permissions turned on and noticed that the permissions mask was properly set (to 0x7ffffffffffffff) when the context menu was accessed directly from the doc lib but when it was accessed from the doc lib in a web part, the permissions mask was 0.
Is it necessary to permission users for web parts as well as for document libraries? What else could explain this behaviour?
We recently migrated to Sharepoint 2007 from Sharepoint 2003; this problem does not occur in our SP 2003 site, only in SP 2007.
Update 1:
New info which may make some of the existing discussion obsolete: on some of our pages, we display doc libs using the webparts that SP automatically creates for you when you create a doc lib (SP does do this, right? I'm a bit new to SP so bear with me). The context menus for the docs displayed in this wepart work fine as our users have been permissioned for these doc libs and SP is giving the correct permissions mask.
However, we also display certain docs by iterating over the lists associated with a given web. We get our web like this:
private SPWeb _web;
And iterate over each list liks this:
foreach (SPList list in _web.Lists)
So, the only question I have now is, is it possible, necessary and/or required to assign permissions to SP lists as well as to doc libs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论