ajout de la partie slam dans le dossier web
This commit is contained in:
		
							
								
								
									
										25
									
								
								ap23/web/doku/inc/Action/AbstractAclAction.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								ap23/web/doku/inc/Action/AbstractAclAction.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| <?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(); | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user