fix: Use usercode to verify if they are the same user.

This commit is contained in:
sunwen
2024-06-18 16:46:43 +08:00
parent a33ad0f572
commit 5276ca309d

View File

@@ -120,7 +120,7 @@ AccountTableForm::AccountTableForm(QWidget* aParent)
return;
}
QString id = model->data(model->index(mCurrentRow, 1)).toString();
if (User::Current()->getUserID() == id)
if (User::Current()->getUserCode() == id)
{
//尝试删除自己
DialogManager::Default()->requestAlertMessage(tr("Can't delete current log in account!"), DialogButtonMode::OkOnly);