mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 14:38:47 +02:00
PHPDoc & code cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user