diff options
Diffstat (limited to 'wiki/inc/Action/AbstractUserAction.php')
-rw-r--r-- | wiki/inc/Action/AbstractUserAction.php | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/wiki/inc/Action/AbstractUserAction.php b/wiki/inc/Action/AbstractUserAction.php deleted file mode 100644 index b4e3f1a..0000000 --- a/wiki/inc/Action/AbstractUserAction.php +++ /dev/null @@ -1,25 +0,0 @@ -<?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(); - } - } - -} |