xref: /dokuwiki/inc/Action/Check.php (revision d868eb89f182718a31113373a6272670bd7f8012)
164ab5140SAndreas Gohr<?php
264ab5140SAndreas Gohr
364ab5140SAndreas Gohrnamespace dokuwiki\Action;
464ab5140SAndreas Gohr
564ab5140SAndreas Gohruse dokuwiki\Action\Exception\ActionAbort;
664ab5140SAndreas Gohr
7ab583a1bSAndreas Gohr/**
8ab583a1bSAndreas Gohr * Class Check
9ab583a1bSAndreas Gohr *
10ab583a1bSAndreas Gohr * Adds some debugging info before aborting to show
11ab583a1bSAndreas Gohr *
12ab583a1bSAndreas Gohr * @package dokuwiki\Action
13ab583a1bSAndreas Gohr */
148c7c53b0SAndreas Gohrclass Check extends AbstractAction
158c7c53b0SAndreas Gohr{
1664ab5140SAndreas Gohr
1764ab5140SAndreas Gohr    /** @inheritdoc */
18*d868eb89SAndreas Gohr    public function minimumPermission()
19*d868eb89SAndreas Gohr    {
2064ab5140SAndreas Gohr        return AUTH_READ;
2164ab5140SAndreas Gohr    }
2264ab5140SAndreas Gohr
23*d868eb89SAndreas Gohr    public function preProcess()
24*d868eb89SAndreas Gohr    {
2564ab5140SAndreas Gohr        check();
2664ab5140SAndreas Gohr        throw new ActionAbort();
2764ab5140SAndreas Gohr    }
2864ab5140SAndreas Gohr}
29