mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 00:02:17 +02:00
Finalized the module "user rights by profile". It is fully integrated with the application setup (inc. sample data). and it it now ready for developing the user management GUI
SVN:code[93]
This commit is contained in:
@@ -52,18 +52,18 @@ function ComputeProjections($oPage, $sScope)
|
||||
foreach ($aDimensions as $iDimension => $oDimension)
|
||||
{
|
||||
// #@# to be moved, may be time consuming
|
||||
$oDimension->CheckProjectionSpec($aClassProjs[$sClass][$iDimension]);
|
||||
$oDimension->CheckProjectionSpec($aClassProjs[$sClass][$iDimension], $sClass);
|
||||
|
||||
$aValues = $aClassProjs[$sClass][$iDimension]->ProjectObject($oObject);
|
||||
if (is_null($aValues))
|
||||
{
|
||||
$sValues = '<any>';
|
||||
$sValues = htmlentities('<any>');
|
||||
}
|
||||
else
|
||||
{
|
||||
$sValues = implode(', ', $aValues);
|
||||
}
|
||||
$oObjectProj['dim'.$oDimension->GetKey()] = htmlentities($sValues);
|
||||
$oObjectProj['dim'.$oDimension->GetKey()] = $sValues;
|
||||
}
|
||||
|
||||
$aDisplayData[] = $oObjectProj;
|
||||
|
||||
@@ -62,18 +62,18 @@ function ComputeProjections($oPage)
|
||||
foreach ($aDimensions as $iDimension => $oDimension)
|
||||
{
|
||||
// #@# to be moved, may be time consuming
|
||||
$oDimension->CheckProjectionSpec($aProPros[$iProfile][$iDimension]);
|
||||
$oDimension->CheckProjectionSpec($aProPros[$iProfile][$iDimension], get_class($oUser));
|
||||
|
||||
$aValues = $aProPros[$iProfile][$iDimension]->ProjectUser($oUser);
|
||||
if (is_null($aValues))
|
||||
{
|
||||
$sValues = '<any>';
|
||||
$sValues = htmlentities('<any>');
|
||||
}
|
||||
else
|
||||
{
|
||||
$sValues = implode(', ', $aValues);
|
||||
}
|
||||
$aUserProfileProj['dim'.$oDimension->GetKey()] = htmlentities($sValues);
|
||||
$aUserProfileProj['dim'.$oDimension->GetKey()] = $sValues;
|
||||
}
|
||||
|
||||
$aDisplayData[] = $aUserProfileProj;
|
||||
|
||||
@@ -45,18 +45,18 @@ function ComputeObjectProjections($oPage, $oObject)
|
||||
foreach ($aDimensions as $iDimension => $oDimension)
|
||||
{
|
||||
// #@# to be moved, may be time consuming
|
||||
$oDimension->CheckProjectionSpec($aClassProjs[$sClass][$iDimension]);
|
||||
$oDimension->CheckProjectionSpec($aClassProjs[$sClass][$iDimension], $sClass);
|
||||
|
||||
$aValues = $aClassProjs[$sClass][$iDimension]->ProjectObject($oObject);
|
||||
if (is_null($aValues))
|
||||
{
|
||||
$sValues = '<any>';
|
||||
$sValues = htmlentities('<any>');
|
||||
}
|
||||
else
|
||||
{
|
||||
$sValues = implode(', ', $aValues);
|
||||
}
|
||||
$oObjectProj['dim'.$oDimension->GetKey()] = htmlentities($sValues);
|
||||
$oObjectProj['dim'.$oDimension->GetKey()] = $sValues;
|
||||
}
|
||||
|
||||
$aDisplayData[] = $oObjectProj;
|
||||
@@ -117,18 +117,18 @@ function ComputeUserProjections($oPage, $oUser)
|
||||
foreach ($aDimensions as $iDimension => $oDimension)
|
||||
{
|
||||
// #@# to be moved, may be time consuming
|
||||
$oDimension->CheckProjectionSpec($aProPros[$iProfile][$iDimension]);
|
||||
$oDimension->CheckProjectionSpec($aProPros[$iProfile][$iDimension], get_class($oUser));
|
||||
|
||||
$aValues = $aProPros[$iProfile][$iDimension]->ProjectUser($oUser);
|
||||
if (is_null($aValues))
|
||||
{
|
||||
$sValues = '<any>';
|
||||
$sValues = htmlentities('<any>');
|
||||
}
|
||||
else
|
||||
{
|
||||
$sValues = implode(', ', $aValues);
|
||||
}
|
||||
$aUserProfileProj['dim'.$oDimension->GetKey()] = htmlentities($sValues);
|
||||
$aUserProfileProj['dim'.$oDimension->GetKey()] = $sValues;
|
||||
}
|
||||
|
||||
$aDisplayData[] = $aUserProfileProj;
|
||||
|
||||
Reference in New Issue
Block a user