164ab5140SAndreas Gohr<?php 264ab5140SAndreas Gohr 364ab5140SAndreas Gohrnamespace dokuwiki\Action; 464ab5140SAndreas Gohr 564ab5140SAndreas Gohruse dokuwiki\Action\Exception\ActionAclRequiredException; 664ab5140SAndreas Gohruse dokuwiki\Action\Exception\ActionException; 7*f21dad39SAndreas Gohruse dokuwiki\Action\Exception\ActionUserRequiredException; 864ab5140SAndreas Gohr 964ab5140SAndreas Gohrabstract class AbstractUserAction extends AbstractAclAction { 1064ab5140SAndreas Gohr 1164ab5140SAndreas Gohr /** @inheritdoc */ 1264ab5140SAndreas Gohr public function checkPermissions() { 1364ab5140SAndreas Gohr parent::checkPermissions(); 1464ab5140SAndreas Gohr global $INPUT; 1564ab5140SAndreas Gohr if(!$INPUT->server->str('REMOTE_USER')) { 16*f21dad39SAndreas Gohr throw new ActionUserRequiredException(); 1764ab5140SAndreas Gohr } 1864ab5140SAndreas Gohr } 1964ab5140SAndreas Gohr 2064ab5140SAndreas Gohr} 21