Skip to content
Snippets Groups Projects
Commit 84eefffd authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Grant

parent c4f99d46
Branches
No related tags found
No related merge requests found
Pipeline #38094 failed
......@@ -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) {
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment