3 namespace dokuwiki\Action
;
6 use dokuwiki\Extension\Event
;
12 * Show the access denied screen
14 * @package dokuwiki\Action
16 class Denied
extends AbstractAction
19 public function minimumPermission()
25 public function tplContent()
30 $event = new Event('ACTION_DENIED_TPLCONTENT', $data);
31 if ($event->advise_before()) {
33 if (empty($INPUT->server
->str('REMOTE_USER')) && actionOK('login')) {
34 (new Login())->show();
37 $event->advise_after();
41 * Display error on denied pages
43 * @author Andreas Gohr <andi@splitbrain.org>
47 public function showBanner()
50 echo p_locale_xhtml('denied');