0
Good morning!
I have a problem with a Sharepoint 2010 list. We made a Javascript code here at work that makes analysts have two fields, blocked for user editing, unlocked. The problem is that all members of the analyst group are falling into user block.
<script src="/-/js/jquery-3.1.1.min.js" type="text/javascript"></script>
<script src="/-/js/spjs-utility.js" type="text/javascript"></script>
<script src="/-/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/strategy/sp/js/jquery.SPServices-2014.01.min.js"></script>
<script type="text/javascript">
$().SPServices({
operation: "GetGroupCollectionFromUser",
userLoginName: $().SPServices.SPGetCurrentUser(),
async: false,
completefunc: function (xData, Status) {
if (($(xData.responseXML).find("Group[Name='nomedogrupo']").length == 1)) {
campos que devem ser bloqueados para analistas
}
else{
campos que devem ser bloqueados para usuários
}
}
});
</script>
What could be causing the problem? I have checked and we are all included in the group correctly.