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.
|
- <?php
-
- namespace dokuwiki\Action;
-
- use dokuwiki\Action\Exception\ActionUserRequiredException;
-
- /**
- * Class AbstractUserAction
- *
- * An action that requires a logged in user
- *
- * @package dokuwiki\Action
- */
- abstract class AbstractUserAction extends AbstractAclAction
- {
- /** @inheritdoc */
- public function checkPreconditions()
- {
- parent::checkPreconditions();
- global $INPUT;
- if ($INPUT->server->str('REMOTE_USER') === '') {
- throw new ActionUserRequiredException();
- }
- }
- }
|