mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-25 09:42:10 +08:00
2317bf2350
Will show error message if last admin and admin role is removed. Closes #1124 Also cleaned up user controller a little.
21 lines
473 B
PHP
21 lines
473 B
PHP
<?php namespace BookStack\Exceptions;
|
|
|
|
class NotifyException extends \Exception
|
|
{
|
|
|
|
public $message;
|
|
public $redirectLocation;
|
|
|
|
/**
|
|
* NotifyException constructor.
|
|
* @param string $message
|
|
* @param string $redirectLocation
|
|
*/
|
|
public function __construct(string $message, string $redirectLocation = "/")
|
|
{
|
|
$this->message = $message;
|
|
$this->redirectLocation = $redirectLocation;
|
|
parent::__construct();
|
|
}
|
|
}
|