Delete the user in a GDPR compatible way (#1151)
* Delete the user in a GDPR compatible way * Block user from calls * Style fix
This commit is contained in:
@@ -24,6 +24,7 @@ use Carbon\Carbon;
|
||||
* @property int status
|
||||
* @property int state
|
||||
* @property Carbon landing_time
|
||||
* @property float fuel_onboard
|
||||
*/
|
||||
class Aircraft extends Model
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@ class UserState extends Enum
|
||||
public const REJECTED = 2;
|
||||
public const ON_LEAVE = 3;
|
||||
public const SUSPENDED = 4;
|
||||
public const DELETED = 5;
|
||||
|
||||
protected static $labels = [
|
||||
self::PENDING => 'user.state.pending',
|
||||
@@ -18,5 +19,6 @@ class UserState extends Enum
|
||||
self::REJECTED => 'user.state.rejected',
|
||||
self::ON_LEAVE => 'user.state.on_leave',
|
||||
self::SUSPENDED => 'user.state.suspended',
|
||||
self::DELETED => 'user.state.deleted',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -38,6 +38,8 @@ use Laratrust\Traits\LaratrustUserTrait;
|
||||
* @property string last_pirep_id
|
||||
* @property Pirep last_pirep
|
||||
* @property UserFieldValue[] fields
|
||||
* @property Role[] roles
|
||||
* @property Subfleet[] subfleets
|
||||
*
|
||||
* @mixin \Illuminate\Database\Eloquent\Builder
|
||||
* @mixin \Illuminate\Notifications\Notifiable
|
||||
|
||||
Reference in New Issue
Block a user