Fix issue with account deletions
Also, added the ignition file for customising the error page for devs
This commit is contained in:
@@ -63,6 +63,7 @@ class UserObserver
|
||||
|
||||
public function deleting(User $user)
|
||||
{
|
||||
Log::debug("Deleting observer running");
|
||||
if ($user->isForceDeleting()) {
|
||||
$user->profile->delete();
|
||||
Log::debug('Referential integrity cleanup: Deleted profile!');
|
||||
|
Reference in New Issue
Block a user