auth tests
This commit is contained in:
17
backend/app/Exceptions/CannotDeleteSystemUserException.php
Normal file
17
backend/app/Exceptions/CannotDeleteSystemUserException.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
/**
|
||||
* Sollevata quando si tenta di anonimizzare/eliminare l'utente di sistema,
|
||||
* che deve restare sempre presente come destinatario dei contenuti riassegnati.
|
||||
*/
|
||||
class CannotDeleteSystemUserException extends RuntimeException
|
||||
{
|
||||
public static function make(): self
|
||||
{
|
||||
return new self('The system user cannot be deleted.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user