3 namespace dokuwiki\Action
;
5 use dokuwiki\Action\Exception\ActionAclRequiredException
;
6 use dokuwiki\Extension\AuthPlugin
;
9 * Class AbstractAclAction
11 * An action that requires the ACL subsystem to be enabled (eg. useacl=1)
13 * @package dokuwiki\Action
15 abstract class AbstractAclAction
extends AbstractAction
18 public function checkPreconditions()
20 parent
::checkPreconditions();
23 if (!$conf['useacl']) throw new ActionAclRequiredException();
24 if (!$auth instanceof AuthPlugin
) throw new ActionAclRequiredException();