Loading config/autoload/local.php.dist +3 −0 Original line number Diff line number Diff line Loading @@ -193,8 +193,11 @@ return array( /****/ ] ], /*** Notifications ***/ 'notifications' => [ // L'utilisateur peut configurer la fréquence des notifications 'override' => false, // Envoi automatique 'fixed' => ['Mer8', 'Lun20'] // ex: IMPOSE une notification chaque mercredis à 8 heure et Lundis à 20 heures Loading doc/notifications.md +3 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,9 @@ L'option **fixed** permet de configurer des envois imposés sous la forme d'un t return [ 'oscar' => [ /*** Notifications ***/ // L'utilisateur peut configurer la fréquence des notifications 'override' => false, 'notifications' => [ // Envoi automatique 'fixed' => ['Mer8'] // ex: IMPOSE une notification chaque mercredis à 8 heures Loading module/Oscar/src/Oscar/Service/UserParametersService.php +1 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ class UserParametersService implements ServiceLocatorAwareInterface, EntityManag public function performChangeFrequency( $userInput ) { if( !$this->getConfiguration('oscar.declarationsHoursOverwriteByAuth', false) ){ if( !$this->getConfiguration('oscar.notifications.override', false) ){ throw new OscarException(_('Cette option ne peut pas être modifiée')); } Loading Loading
config/autoload/local.php.dist +3 −0 Original line number Diff line number Diff line Loading @@ -193,8 +193,11 @@ return array( /****/ ] ], /*** Notifications ***/ 'notifications' => [ // L'utilisateur peut configurer la fréquence des notifications 'override' => false, // Envoi automatique 'fixed' => ['Mer8', 'Lun20'] // ex: IMPOSE une notification chaque mercredis à 8 heure et Lundis à 20 heures Loading
doc/notifications.md +3 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,9 @@ L'option **fixed** permet de configurer des envois imposés sous la forme d'un t return [ 'oscar' => [ /*** Notifications ***/ // L'utilisateur peut configurer la fréquence des notifications 'override' => false, 'notifications' => [ // Envoi automatique 'fixed' => ['Mer8'] // ex: IMPOSE une notification chaque mercredis à 8 heures Loading
module/Oscar/src/Oscar/Service/UserParametersService.php +1 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ class UserParametersService implements ServiceLocatorAwareInterface, EntityManag public function performChangeFrequency( $userInput ) { if( !$this->getConfiguration('oscar.declarationsHoursOverwriteByAuth', false) ){ if( !$this->getConfiguration('oscar.notifications.override', false) ){ throw new OscarException(_('Cette option ne peut pas être modifiée')); } Loading