1f21dad39SAndreas Gohr<?php 2f21dad39SAndreas Gohr 3f21dad39SAndreas Gohrnamespace dokuwiki\Action; 4f21dad39SAndreas Gohr 5f21dad39SAndreas Gohruse dokuwiki\Action\Exception\ActionAbort; 6f21dad39SAndreas Gohr 7ab583a1bSAndreas Gohr/** 8ab583a1bSAndreas Gohr * Class Draftdel 9ab583a1bSAndreas Gohr * 10ab583a1bSAndreas Gohr * Delete a draft 11ab583a1bSAndreas Gohr * 12ab583a1bSAndreas Gohr * @package dokuwiki\Action 13ab583a1bSAndreas Gohr */ 14f1246b76SAndreas Gohrclass Draftdel extends AbstractAction { 15f21dad39SAndreas Gohr 16f21dad39SAndreas Gohr /** @inheritdoc */ 17ec701221SAndreas Gohr public function minimumPermission() { 18f21dad39SAndreas Gohr return AUTH_EDIT; 19f21dad39SAndreas Gohr } 20f21dad39SAndreas Gohr 21f21dad39SAndreas Gohr public function preProcess() { 22f21dad39SAndreas Gohr act_draftdel('fixme'); // FIXME replace this utility function 23*58528803SAndreas Gohr throw new ActionAbort('redirect'); 24f21dad39SAndreas Gohr } 25f21dad39SAndreas Gohr 26f21dad39SAndreas Gohr} 27