Check Whether person logged in is user or admin in sharepoint -
how check whether person loggen in user or admin checking permissions in sharepoint.
you can use spservices determine permission levels user. can use below code in document.ready function.
$().spservices({ operation: "getrolecollectionfromuser", userloginname: $().spservices.spgetcurrentuser(), async: false, completefunc: function(xdata, status) { $(xdata.responsexml).find("role").each(function() { alert($(this).attr('name')) });
Comments
Post a Comment