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.
 
 
 
 
 

26 lines
530 B

  1. <?php
  2. namespace dokuwiki\Action;
  3. use dokuwiki\Action\Exception\ActionUserRequiredException;
  4. /**
  5. * Class AbstractUserAction
  6. *
  7. * An action that requires a logged in user
  8. *
  9. * @package dokuwiki\Action
  10. */
  11. abstract class AbstractUserAction extends AbstractAclAction
  12. {
  13. /** @inheritdoc */
  14. public function checkPreconditions()
  15. {
  16. parent::checkPreconditions();
  17. global $INPUT;
  18. if ($INPUT->server->str('REMOTE_USER') === '') {
  19. throw new ActionUserRequiredException();
  20. }
  21. }
  22. }