You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
361 B

  1. <?php
  2. namespace App\Controllers;
  3. use Movim\Controller\Base;
  4. class NewsController extends Base
  5. {
  6. public function load()
  7. {
  8. $this->session_only = true;
  9. }
  10. public function dispatch()
  11. {
  12. $this->page->setTitle(__('page.news'));
  13. if (!$this->user?->hasPubsub()) {
  14. $this->redirect('contact');
  15. }
  16. }
  17. }