164ab5140SAndreas Gohr<?php 264ab5140SAndreas Gohr 364ab5140SAndreas Gohrnamespace dokuwiki\Action; 464ab5140SAndreas Gohr 564ab5140SAndreas Gohruse dokuwiki\Action\Exception\ActionAclRequiredException; 664ab5140SAndreas Gohr 7*ab583a1bSAndreas Gohr/** 8*ab583a1bSAndreas Gohr * Class AbstractAclAction 9*ab583a1bSAndreas Gohr * 10*ab583a1bSAndreas Gohr * An action that requires the ACL subsystem to be enabled (eg. useacl=1) 11*ab583a1bSAndreas Gohr * 12*ab583a1bSAndreas Gohr * @package dokuwiki\Action 13*ab583a1bSAndreas Gohr */ 1464ab5140SAndreas Gohrabstract class AbstractAclAction extends AbstractAction { 1564ab5140SAndreas Gohr 1664ab5140SAndreas Gohr /** @inheritdoc */ 1764ab5140SAndreas Gohr public function checkPermissions() { 1864ab5140SAndreas Gohr parent::checkPermissions(); 1964ab5140SAndreas Gohr global $conf; 2064ab5140SAndreas Gohr if(!$conf['useacl']) throw new ActionAclRequiredException(); 2164ab5140SAndreas Gohr } 2264ab5140SAndreas Gohr 2364ab5140SAndreas Gohr} 24