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