2011-03-16 03:45:43 +01:00
|
|
|
<?php
|
2016-06-23 01:37:22 +02:00
|
|
|
|
|
|
|
namespace SilverStripe\Security;
|
|
|
|
|
|
|
|
use Exception;
|
|
|
|
|
2011-03-16 03:45:43 +01:00
|
|
|
/**
|
|
|
|
* Throw this exception to register that a user doesn't have permission to do the given action
|
|
|
|
* and potentially redirect them to the log-in page. The exception message may be presented to the
|
|
|
|
* user, so it shouldn't be in nerd-speak.
|
|
|
|
*/
|
2016-11-29 00:31:16 +01:00
|
|
|
class PermissionFailureException extends Exception
|
|
|
|
{
|
2011-03-16 03:45:43 +01:00
|
|
|
|
2014-08-15 08:53:05 +02:00
|
|
|
}
|