1*64ab5140SAndreas Gohr<?php 2*64ab5140SAndreas Gohr 3*64ab5140SAndreas Gohrnamespace dokuwiki\Action; 4*64ab5140SAndreas Gohr 5*64ab5140SAndreas Gohruse dokuwiki\Action\Exception\ActionAclRequiredException; 6*64ab5140SAndreas Gohruse dokuwiki\Action\Exception\ActionException; 7*64ab5140SAndreas Gohruse dokuwiki\Action\Exception\ActionNoUserException; 8*64ab5140SAndreas Gohr 9*64ab5140SAndreas Gohrabstract class AbstractUserAction extends AbstractAclAction { 10*64ab5140SAndreas Gohr 11*64ab5140SAndreas Gohr /** @inheritdoc */ 12*64ab5140SAndreas Gohr public function checkPermissions() { 13*64ab5140SAndreas Gohr parent::checkPermissions(); 14*64ab5140SAndreas Gohr global $INPUT; 15*64ab5140SAndreas Gohr if(!$INPUT->server->str('REMOTE_USER')) { 16*64ab5140SAndreas Gohr throw new ActionNoUserException(); 17*64ab5140SAndreas Gohr } 18*64ab5140SAndreas Gohr } 19*64ab5140SAndreas Gohr 20*64ab5140SAndreas Gohr} 21