Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: GetGroupCollectionFromUser

The 'if' function isn't returning a value from your XML. It's only going to evaluate the condition you specify. I use that same condition throughout my code and it works consistently. For example...
var booAdminUser;
if($(xData.responseXML).find("Group[Name='access_AppAdmins']").length == 1) {
    booAdminUser = true;
}
It's as simple as that. If the user is a member of 'access_AppAdmins', then the variable 'booAdminUser' gets set to 'true', otherwise, that line gets skipped.

Geoff

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>