Commit d889be887f72be4af732e7dd67d4374769904c7c

Authored by Eduardo Heinske
1 parent ef177ec3

Correção final na audtoria de permissões do parâmetros do PEN

Showing 1 changed file with 3 additions and 23 deletions   Show diff stats
rn/PenParametroRN.php
... ... @@ -45,6 +45,7 @@ class PenParametroRN extends InfraRN {
45 45  
46 46 try {
47 47  
  48 + SessaoSEI::getInstance()->validarAuditarPermissao('pen_parametros_configuracao', __METHOD__, $objDTO);
48 49  
49 50 $objBD = new PenParametroBD($this->inicializarObjInfraIBanco());
50 51  
... ... @@ -73,6 +74,7 @@ class PenParametroRN extends InfraRN {
73 74  
74 75 try {
75 76  
  77 + SessaoSEI::getInstance()->validarAuditarPermissao('pen_parametros_configuracao_alterar', __METHOD__, $objDTO);
76 78  
77 79 $objBD = new PenParametroBD($this->inicializarObjInfraIBanco());
78 80  
... ... @@ -96,29 +98,7 @@ class PenParametroRN extends InfraRN {
96 98 throw new InfraException('Erro ao excluir parâmetro.', $e);
97 99 }
98 100 }
99   -
100   - protected function desativarControlado(PenParametroDTO $objDTO){
101   -
102   - try {
103   -
104   -
105   - }
106   - catch (Exception $e) {
107   - throw new InfraException('Erro ao desativar parâmetro.', $e);
108   - }
109   - }
110   -
111   - protected function reativarControlado(PenParametroDTO $objDTO){
112 101  
113   - try {
114   -
115   -
116   - }
117   - catch (Exception $e) {
118   - throw new InfraException('Erro ao reativar parâmetro.', $e);
119   - }
120   - }
121   -
122 102 public function setValor($strNome, $strValor){
123 103  
124 104 try {
... ... @@ -147,7 +127,7 @@ class PenParametroRN extends InfraRN {
147 127 $objPenParametroDTO->retStrValor();
148 128  
149 129 if($this->contar($objPenParametroDTO) > 0) {
150   - $objPenParametroDTO = $this->consultarControlado($objPenParametroDTO);
  130 + $objPenParametroDTO = $this->consultar($objPenParametroDTO);
151 131 return $objPenParametroDTO->getStrValor();
152 132 }
153 133 }
... ...