}
def doWithApplicationContext = {ApplicationContext applicationContext ->
+
+ Boolean modeAutonome = ConfigurationHolder.config.eliot.mode.autonome
+
+ // On n'injecte pas les services des API CGI si l'application est démarrée
+ // en mode autonome dans l'environnement PROD. Dans les autres environnements
+ // nous en avons pour l'instant besoin pour simuler CAS.
+ if (modeAutonome && Environment.current == Environment.PRODUCTION) {
+ return
+ }
+
String[] tabCtx = [
"lilieAnnuaireApplicationContext.xml",
Constantes.FICHIER_APPLICATION_CONTEXT,
def afficherDroits = {
CahierDeTextes.withTransaction {
CahierDeTextes cdt = CahierDeTextes.get(params.id)
- Boolean isAutonome = ConfigurationHolder.config.eliot.textes.mode.autonome
+ Boolean isAutonome = ConfigurationHolder.config.eliot.mode.autonome
// pour que IE ne cache pas les réponses
response.setHeader('Cache-Control', 'no-cache')