public function checkDataBeforeDelete($e)
{
if (in_array($this->username, static::getProtectedUsernames())) {
throw new Exception(\Yii::t('skeeks/cms', 'This user can not be removed'));
}
if ($this->id == \Yii::$app->user->identity->id) {
throw new Exception(\Yii::t('skeeks/cms', 'You can not delete yourself'));
}
}