(imported comment written by arnaud91)
Hi Ben,
I finally solve the problem.
In the task, I added a Processing instruction :
if ((concatenation of names of readers of bes custom site whose (name of it =
"Orange Firewall")) contains (name of current console user)) then
"yes"
else (
"no")
and a script (inspirated by “BigFix Firewall - Deploy” task):
document.body.onload = getAllParaElems; function getAllParaElems()
{ var Ptag = document.getElementsByTagName(
"p"); var UserValidationTest = Ptag[0].innerText.toLowerCase();
if (UserValidationTest.match(
'yes'))
{ Ptag[1].style.display =
''; Ptag[2].style.display =
''; Ptag[3].style.display =
'none'; Ptag[4].style.display =
'none'; var actionDivs = GetElementsByClassname(document.body,
'div' ,
'actionlink');
for (var i = 0; i < actionDivs.length; i++)
{
if ( actionDivs+.innerText.toLowerCase().match(
'select') )
{ actionDivs+.style.display =
'';
}
}
}
else
{ Ptag[1].style.display =
'none'; Ptag[2].style.display =
'none'; Ptag[3].style.display =
''; Ptag[4].style.display =
''; var actionDivs = GetElementsByClassname(document.body,
'div' ,
'actionlink');
for (var j = 0; j < actionDivs.length; j++)
{
if ( actionDivs[j].innerText.toLowerCase().match(
'select') )
{ actionDivs[j].style.display =
'none';
}
}
}
} function GetElementsByClassname(startNode, nodeType, nodeClass)
{ var possNodes = startNode.getElementsByTagName(nodeType); var numPoss = possNodes.length; var nodes =
new Array();
for (var i = 0; i < numPoss; i++)
{ var classNames = possNodes+.className.split(
' ');
for (var j = 0; j< classNames.length; j++)
{
if (classNames[j] == nodeClass)
{ nodes.push(possNodes+);
}
}
}
return nodes;
}
The task description is like below :
Available option :
This task will subscribe selected computers to Orange Firewall Pack option. After completion, you will have the possibility to use tasks, fixlets, baselines and analyses of BigFix Firewall and Orange Firewall sites.
Important Note : This task will not install firewall software on selected computers. You will have to use appropriated tasks to deploy firewall software, rules, and all other firewall features.
You are not allowed to deploy this option on your computers.
Please contact your sales representative to enable this option.
As the processing intruction is the first element of the task description html body, the script verifies if there is a string containing “yes”, and will show the next 2 sentences and the link and hide the 2 last sentences, or the contrary if it finds “no”.
It works fine.
Arnaud.
PS : my question about operator rights on external site was about the relevance to use to know the list of readers of this type of site. The relevance below doesn’t work (Error: The operator “readers” is not defined.) :
names of readers of bes site whose (name of it =
"BigFix Firewall")
but the same with a bes custom site works !