PHPDoc & code cleanup

This commit is contained in:
Molkobain
2020-07-31 10:45:03 +02:00
parent 7b13078bf9
commit f59de920c1
5 changed files with 96 additions and 53 deletions

View File

@@ -137,15 +137,6 @@ function DisplayDetails($oP, $sClass, $oObj, $id)
{
$sClassLabel = MetaModel::GetName($sClass);
// 2018-04-11 : removal of the search block
// $oSearch = new DBObjectSearch($sClass);
// $oBlock = new DisplayBlock($oSearch, 'search', false);
// $oBlock->Display($oP, 0, array(
// 'table_id' => 'search-widget-results-outer',
// 'open' => false,
// 'update_history' => false,
// ));
// The object could be listed, check if it is actually allowed to view it
$oSet = CMDBObjectSet::FromObject($oObj);
if (UserRights::IsActionAllowed($sClass, UR_ACTION_READ, $oSet) == UR_ALLOWED_NO)