mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 00:50:32 +00:00
Update HostingSubscription.php
This commit is contained in:
parent
b27886a6ff
commit
908d987551
1 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,10 @@ class HostingSubscription extends Model
|
|||
|
||||
static::deleting(function ($model) {
|
||||
|
||||
if (empty($model->system_username)) {
|
||||
throw new \Exception('System username is empty');
|
||||
}
|
||||
|
||||
$getLinuxUser = new GetLinuxUser();
|
||||
$getLinuxUser->setUsername($model->system_username);
|
||||
$getLinuxUserStatus = $getLinuxUser->handle();
|
||||
|
|
Loading…
Reference in a new issue