diff options
Diffstat (limited to 'wiki/inc/Action/AbstractAclAction.php')
-rw-r--r-- | wiki/inc/Action/AbstractAclAction.php | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/wiki/inc/Action/AbstractAclAction.php b/wiki/inc/Action/AbstractAclAction.php deleted file mode 100644 index 871edb0..0000000 --- a/wiki/inc/Action/AbstractAclAction.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php - -namespace dokuwiki\Action; - -use dokuwiki\Action\Exception\ActionAclRequiredException; - -/** - * Class AbstractAclAction - * - * An action that requires the ACL subsystem to be enabled (eg. useacl=1) - * - * @package dokuwiki\Action - */ -abstract class AbstractAclAction extends AbstractAction { - - /** @inheritdoc */ - public function checkPreconditions() { - parent::checkPreconditions(); - global $conf; - global $auth; - if(!$conf['useacl']) throw new ActionAclRequiredException(); - if(!$auth) throw new ActionAclRequiredException(); - } - -} |