我想看看“suiteBar”以网站集管理员身份登录时 [英] i want to see "suiteBar" when login as site collection administrator
问题描述
您好
我使用的是以下代码
var suitebar = $("#suiteBar");
// if(GetUrlKeyValue(" uid")!=" 57" || GetUrlKeyValue(" uid")==""){
&NBSP;&NBSP;&NBSP; if(suitebar.length< 1){$(&#;#s4-ribbonrow")。css('display','none'); }
} b $ b
成功隐藏套件,我将此代码放在visual webpart上并将其用作母版页上的代码段
<问题:
它也隐藏了所有用户甚至网站集管理员的套件栏,
我想看到或者这个栏应该是可见的当我以网站集管理员身份登录时休息正常
谢谢
您好
你可以尝试使用" SPSecurityTrimmedControl"。
这应该允许网站所有者看到西装栏并向其他用户隐藏。
谢谢
跨度>
Hi
I am using below code
var suitebar = $("#suiteBar");
//if (GetUrlKeyValue("uid") != "57" || GetUrlKeyValue("uid")==" ") {
if (suitebar.length < 1) { $("#s4-ribbonrow").css('display', 'none'); }
}
to hide suitebar successfully , I placed this code on visual webpart and use it as a snippets on master page
Problem:
It hides suite bar from all user even site collection administrator as well,
I want to see or this bar should be visible when I login as site collection administrator rest fine
Thanks
Hi
Can you try hiding suit bar using "SPSecurityTrimmedControl".
This should allow site owners to see the suit bar and hide from rest of the users.
Thanks
这篇关于我想看看“suiteBar”以网站集管理员身份登录时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!