xref: /dokuwiki/inc/Action/Check.php (revision ab583a1bc44ef1ef3b917647fc361aabd055c2ac)
164ab5140SAndreas Gohr<?php
264ab5140SAndreas Gohr
364ab5140SAndreas Gohrnamespace dokuwiki\Action;
464ab5140SAndreas Gohr
564ab5140SAndreas Gohruse dokuwiki\Action\Exception\ActionAbort;
664ab5140SAndreas Gohr
7*ab583a1bSAndreas Gohr/**
8*ab583a1bSAndreas Gohr * Class Check
9*ab583a1bSAndreas Gohr *
10*ab583a1bSAndreas Gohr * Adds some debugging info before aborting to show
11*ab583a1bSAndreas Gohr *
12*ab583a1bSAndreas Gohr * @package dokuwiki\Action
13*ab583a1bSAndreas Gohr */
1464ab5140SAndreas Gohrclass Check extends AbstractAction {
1564ab5140SAndreas Gohr
1664ab5140SAndreas Gohr    /** @inheritdoc */
1764ab5140SAndreas Gohr    function minimumPermission() {
1864ab5140SAndreas Gohr        return AUTH_READ;
1964ab5140SAndreas Gohr    }
2064ab5140SAndreas Gohr
2164ab5140SAndreas Gohr    public function preProcess() {
2264ab5140SAndreas Gohr        check();
2364ab5140SAndreas Gohr        throw new ActionAbort();
2464ab5140SAndreas Gohr    }
2564ab5140SAndreas Gohr
2664ab5140SAndreas Gohr}
27