且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

禁用或删除“使用访问权限打开"整个SharePoint网站

更新时间:2023-12-05 10:02:04

您好,萨拉,

您需要将以下脚本添加到当前的MasterPage中.隐藏打开访问权限"从功能区上来.

You need to add the below script to your current MasterPage  to hide "Open With Access" from the ribbon.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">


(document).ready(function() { if(window.location.href.toLowerCase().indexOf("allitems.aspx")> 0) { setTimeout(HideOpenWithAccessRibbonButton,10); } }); 函数HideOpenWithAccessRibbonButton() {
(document).ready(function () { if(window.location.href.toLowerCase().indexOf("allitems.aspx") > 0) { setTimeout(HideOpenWithAccessRibbonButton, 10); } }); function HideOpenWithAccessRibbonButton() {


('a [id * ="OpenWithAccess"]').hide(); setTimeout(HideOpenWithAccessRibbonButton,10); } </script>
('a[id*="OpenWithAccess"]').hide(); setTimeout(HideOpenWithAccessRibbonButton, 10); } </script>