xref: /dokuwiki/inc/Action/Draft.php (revision 6e4bf08e063f1f0b061525dfad582869333287e7)
1<?php
2
3namespace dokuwiki\Action;
4
5/**
6 * Class Draft
7 *
8 * Screen to see and recover a draft
9 *
10 * @package dokuwiki\Action
11 * @fixme combine with Recover?
12 */
13class Draft extends AbstractAction {
14
15    /** @inheritdoc */
16    function minimumPermission() {
17        global $INFO;
18        if($INFO['exists']) {
19            return AUTH_EDIT;
20        } else {
21            return AUTH_CREATE;
22        }
23    }
24
25    // FIXME any permission checks needed?
26
27    public function tplContent() {
28        html_draft();
29    }
30
31}
32