Hi Everyone,
I want to Hide custom action for all users and groups , only anonymous users can see it.
How I can do this ?
You can try the following :
<script type=”text/javascript” src=”../../JSLibrary/jquery-1.3.2.min.js”></script><script type=”text/javascript” src=”../../JSLibrary/jquery.SPServices-0.4.8.min.js”></script>script type=”text/javascript”>
$(document).ready(function () {
var managerName;
var userName = new String($().SPServices.SPGetCurrentUser());
if(userName)
{
$(“mycustomcontrol”).hide() //id of the custom control
}