More precisely, I have a function in my script which creates an hyperlink according to a reference (in my columns' fields). I would like to call this function only if the logged user belong to a specific SharePoint Group.
Edit: It's a little more tricky because I have to check if the user belongs to a specific SharePoint Group, but within several sites. The SharePoint Group is a little different throw each sites, for example :
siteA Managers (in site A)
siteB Managers (in site B)
So, I would like to only check if the current user belongs to "Managers", it will match for all the sites. Is it possible de make a comparison like *Managers or something like that, I'm not very handy with JS.