1<?php 2/** 3 * Created by IntelliJ IDEA. 4 * User: andi 5 * Date: 2/11/17 6 * Time: 11:55 AM 7 */ 8 9namespace dokuwiki\Action; 10 11class Draft extends AbstractAction { 12 13 /** @inheritdoc */ 14 function minimumPermission() { 15 global $INFO; 16 if($INFO['exists']) { 17 return AUTH_EDIT; 18 } else { 19 return AUTH_CREATE; 20 } 21 } 22 23 // FIXME any permission checks needed? 24 25 public function tplContent() { 26 html_draft(); 27 } 28 29} 30