diff --git a/module/Indicateur/src/Service/Indicateur/IndicateurService.php b/module/Indicateur/src/Service/Indicateur/IndicateurService.php index a9600cc20cfbb7fdeef0339a7475c513c65c87ef..adcd009a4ccf3af76d8804cd7c9279a5bcafb456 100644 --- a/module/Indicateur/src/Service/Indicateur/IndicateurService.php +++ b/module/Indicateur/src/Service/Indicateur/IndicateurService.php @@ -25,6 +25,7 @@ class IndicateurService use ParametreServiceAwareTrait; /** GESTION DES ENTITÉS ***********************************************************************************************/ + const USER = "dapac_read"; /** * @param Indicateur $indicateur @@ -231,7 +232,7 @@ class IndicateurService // grant /////////////////////////////////////////////////////////////////////////////////////////////////////// - $sql = "grant select on " . $indicateur->getViewId() . " to dapac_read"; + $sql = "grant select on " . $indicateur->getViewId() . " to ". IndicateurService::USER; try { $this->getObjectManager()->getConnection()->prepare($sql); @@ -364,7 +365,7 @@ class IndicateurService // grant /////////////////////////////////////////////////////////////////////////////////////////////////////// - $sql = "grant select on " . $indicateur->getViewId() . " to dapac_read"; + $sql = "grant select on " . $indicateur->getViewId() . " to ". IndicateurService::USER; try { $this->getObjectManager()->getConnection()->prepare($sql); } catch (DBA_Exception $e) { diff --git a/module/Indicateur/view/indicateur/indicateur/afficher.phtml b/module/Indicateur/view/indicateur/indicateur/afficher.phtml index b377458d84f4314a85eacde12074fd40408f9bf4..cda0a9f33b8b48d6764b678f5c72f341754d1bf5 100644 --- a/module/Indicateur/view/indicateur/indicateur/afficher.phtml +++ b/module/Indicateur/view/indicateur/indicateur/afficher.phtml @@ -132,6 +132,8 @@ use Indicateur\Entity\Db\Snapshot; <dl class="row"> <dt class="col-md-3"> Type : </dt> <dd class="col-md-9"> Indicateur construit à partir d'importation CSV</dd> + <dt class="col-md-3">Table associée : </dt> + <dd class="col-md-9"> <?php echo $indicateur->getViewId(); ?> <dt class="col-md-3">Dernier rafraichissement : </dt> <dd class="col-md-9"> <?php echo $indicateur->getDernierRafraichissement()->format('d/m/Y à H:i:s'); ?> </dd> </dl>