about summary refs log tree commit diff stats
path: root/wiki/inc/Action/AbstractUserAction.php
diff options
context:
space:
mode:
Diffstat (limited to 'wiki/inc/Action/AbstractUserAction.php')
-rw-r--r--wiki/inc/Action/AbstractUserAction.php25
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();
-        }
-    }
-
-}