Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perfiles no compilados en ambientes dockerizados #105

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

enfoqueNativo
Copy link
Contributor

Agrega metodo y constante para indicar que los perfiles funcionales se usen directamente desde la bd, inclusive usando metadatos compilados Fix #104

@enfoqueNativo enfoqueNativo added this to the 3.4 milestone May 19, 2021
@enfoqueNativo enfoqueNativo self-assigned this May 19, 2021
@@ -482,7 +485,9 @@ protected function iniciar_contexto_solicitud($item)
require_once( self::get_directorio_compilacion() . '/gene/toba_mc_gene__basicos.php' );
$grupos_acceso = toba::manejador_sesiones()->get_perfiles_funcionales_activos();
foreach( $grupos_acceso as $grupo ) {
require_once( self::get_directorio_compilacion() . '/gene/toba_mc_gene__grupo_'.$grupo.'.php' );
if ($this->usar_perfiles_compilados($item[0])) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normalmente, el require si no encontraba un archivo de perfil compilado, tiraba un warning y eso se usaba para depurar que te faltaba esos metadatos compilados en la imagen Docker.

Agregar un else a este if para enviar al log un warning de que NO existe el archivo a incluir...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permitir no utilizar los perfiles funcionales compilados
2 participants