diff --git a/synchro/synchrodatasource.class.inc.php b/synchro/synchrodatasource.class.inc.php index c46cad1d6..a22ac4da1 100644 --- a/synchro/synchrodatasource.class.inc.php +++ b/synchro/synchrodatasource.class.inc.php @@ -2835,26 +2835,25 @@ class SynchroReplica extends DBObject implements iDisplay $oPage->add(''); $sDestClass = $this->Get('dest_class'); - $bIsActionAllowed = true; - + $bCanDisplayDestObjSections = true; if (strlen($sDestClass) > 0) { $oDestObj = MetaModel::GetObject($sDestClass, $this->Get('dest_id'), false); if (is_object($oDestObj)) { - $bIsActionAllowed = UserRights::IsActionAllowed($sDestClass, UR_ACTION_READ, DBObjectSet::FromObject($oDestObj)); - } else { - $bIsActionAllowed = UserRights::IsActionAllowed($sDestClass, UR_ACTION_READ, null); - } + $bCanDisplayDestObjSections = UserRights::IsActionAllowed($sDestClass, UR_ACTION_READ, DBObjectSet::FromObject($oDestObj)); - if ($bIsActionAllowed) { - $oPage->add('