Ok, here is the scenario. I have a parent site with 3 sub-sites. When I am logged in as myself, "site owner; site collection admin" I can view the results of this query. When i log in as a different user who is just a "member" of this site, the query doesn't return anything. I can't even get it to alert the xData.responseText, any ideas on where my permissions are messed up?
Here is the code:
//get sub-Sites and put into an array
var subSite = new Array();
$().SPServices({
operation: "GetAllSubWebCollection",
async:false,
completefunc: function(xData, Status) {
$(xData.responseXML).find("Webs > Web").each(function() {
//alert(xData.responseText);
var $node = $(this);
var siteTitle = $node.attr("Title").replace(/\s/g, "");
subSite.push( siteTitle );
//alert(siteTitle);
});
}
});