问题描述
在Sharepoint 2013中,有ootb功能可以实现术语驱动的导航,如果我们为术语使用友好的网址,则导航将被安全修剪i. e.如果当前用户无权访问页面,则该术语将不可见 给他.
In Sharepoint 2013 there is ootb functionality to achieve term driven navigation and if we use friendly Url for a term then the navigation is security trimmed i. e. If current user does not have access to a page then that term will not be visible to him.
当我使用JavaScript通过从术语存储中获取术语及其URL并显示在网站上来构建自定义导航时,如何实现此安全修整.
How can I achieve this security trimming when i am building custom navigation using JavaScript by fetching the terms and its URL from term store and display on the site. Only those terms should be visible to which the current user has access.
推荐答案
似乎我们无法使用JSOM在自定义托管元数据导航中实现安全修整.
It seems we can't achieve security trimming in custom managed metadata navigation using JSOM.
作为一种解决方法,我们可以创建一个SharePoint自定义列表来存储导航URL并使用项目权限,然后在列表上创建一个导航.
As a workaround, we can create a SharePoint custom list to store the navigation URL and using item permission, then create a navigation base on the list.
SharePoint 2010和2013的基于列表的自定义菜单站点地图提供程序
https://listdrivenspmenu.codeplex.com/
这篇关于在Sharepoint 2013中,我使用JSOM使用术语存储中的术语创建自定义网站导航.如何为该自定义导航实现安全修整?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!