FluxBB\Auth\Authorizer::authorizedIf PHP Method

authorizedIf() protected method

Make sure the given check passes, otherwise throw an exception.
protected authorizedIf ( boolean $check )
$check boolean
    protected function authorizedIf($check)
    {
        if (!$check) {
            throw new NoPermission();
        }
        return $this;
    }