Пример #1
0
 public function before()
 {
     parent::before();
     \Config::load('attribute::attribute', 'attribute');
     // Check if module is disabled and forbid access to it
     if (\Config::get('attribute.enabled') == FALSE) {
         throw new \HttpNotFoundException();
     }
 }
Пример #2
0
 public function before()
 {
     parent::before();
     \Config::load('page::accordion', 'details');
     // Check if module is disabled and forbid access to it
     if (\Config::get('details.enabled') == FALSE) {
         throw new \HttpNotFoundException();
     }
 }
Пример #3
0
 public function before()
 {
     parent::before();
     \Config::load('product::infotab', 'infotab');
     // Check if module is disabled and forbid access to it
     if (\Config::get('infotab.enabled') == FALSE) {
         throw new \HttpNotFoundException();
     }
 }
Пример #4
0
 public function before()
 {
     parent::before();
     \Config::load('product::product', 'details');
     \Config::load('product::upsell', 'upsell');
     // Check if module is disabled and forbid access to it
     if (\Config::get('upsell.enabled') == FALSE) {
         throw new \HttpNotFoundException();
     }
 }
Пример #5
0
 public function before()
 {
     parent::before();
     \Config::load('application::application', 'details');
     \Config::load('application::hotspot', 'hotspot');
     \Config::load('application::infotab', 'infotab');
     // Check if module is disabled and forbid access to it
     if (\Config::get('hotspot.enabled') == FALSE) {
         throw new \HttpNotFoundException();
     }
 }
Пример #6
0
 public function before()
 {
     parent::before();
     \Config::load('order::order', 'details');
     \Config::load('user::user', 'user');
     \Config::load('auto_response_emails', true);
     // Check if module is disabled and forbid access to it
     if (\Config::get('details.enabled') == FALSE) {
         throw new \HttpNotFoundException();
     }
 }
Пример #7
0
 public function before()
 {
     parent::before();
 }