$(document).ready(function () {
$().SPServices({
operation: "GetGroupCollectionFromUser",
userLoginName: $().SPServices.SPGetCurrentUser(),
async: false,
completefunc: function (xData, Status) {
if ($(xData.responseXML).find("Group[Name='DC']").length == 1)
{
alert("DC group user Login");
}
else
{
alert("Not an Group user");
}
}
});
});
$().SPServices({
operation: "GetGroupCollectionFromUser",
userLoginName: $().SPServices.SPGetCurrentUser(),
async: false,
completefunc: function (xData, Status) {
if ($(xData.responseXML).find("Group[Name='DC']").length == 1)
{
alert("DC group user Login");
}
else
{
alert("Not an Group user");
}
}
});
});
No comments:
Post a Comment