在 SharePoint 中,我可以通过编程控制用户在页面上看到的内容吗?

发布于 2024-08-22 11:51:26 字数 137 浏览 7 评论 0 原文

我有一个 SharePoint Wiki,我允许匿名用户对其进行只读访问。不过,我想这样做,以便如果用户访问该网站,顶部的“编辑历史记录-传入链接”工具栏就会消失,这样他们就不会对该链接感到好奇,但允许登录的编辑器访问。有什么简单的方法可以允许这样做吗?谢谢!

I have a SharePoint Wiki that I'm permitting anonymous users read-only access to. However I'd like to make it so that the "Edit-History-Incoming Links" toolbar at the top vanishes if the user accesses the site so they don't get curious about that link, but a logged in editor is allowed access. Is there any easy way to permit this? Thanks!

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

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

发布评论

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

评论(1

枕头说它不想醒 2024-08-29 11:51:26

考虑使用 SharePoint Designer 使用 SPSecurityTrimmedControl 来包装呈现链接的任何内容(可能在母版页上):

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spsecuritytrimmedcontrol.aspx

Look into wrapping whatever renders the links (perhaps on the masterpage) with a SPSecurityTrimmedControl using SharePoint Designer:

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spsecuritytrimmedcontrol.aspx

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