xref: /dokuwiki/inc/Action/Draftdel.php (revision ec7012214a693c8b3103377245a7d797cf8f9608)
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 */
14f21dad39SAndreas Gohrclass Draftdel extends AbstractUserAction {
15f21dad39SAndreas Gohr
16f21dad39SAndreas Gohr    /** @inheritdoc */
17*ec701221SAndreas 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
23f21dad39SAndreas Gohr        throw new ActionAbort();
24f21dad39SAndreas Gohr    }
25f21dad39SAndreas Gohr
26f21dad39SAndreas Gohr}
27