はじまりの大地

This commit is contained in:
miteruzo
2024-07-08 03:32:47 +09:00
commit c616a96f53
7749 changed files with 478270 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace dokuwiki\Action;
use dokuwiki\Action\Exception\ActionAclRequiredException;
use dokuwiki\Extension\AuthPlugin;
/**
* 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 instanceof AuthPlugin) throw new ActionAclRequiredException();
}
}