feat(users): add account indicators to management page, update old refs

This commit is contained in:
2022-08-19 00:54:32 +01:00
parent e691e61bb5
commit 2b79ae4d09
7 changed files with 154 additions and 38 deletions

View File

@@ -33,11 +33,6 @@ class Application extends Model
];
public function oneoffApplicant()
{
return $this->hasOne('App\OneoffApplicant', 'application_id', 'id');
}
public function user()
{
return $this->belongsTo('App\User', 'applicantUserID', 'id');
@@ -70,11 +65,4 @@ class Application extends Model
]);
}
public function isOneoff()
{
return $this->user->id == 1; // ID 1 is always the ghost
}
}