fix: Use usercode to verify if they are the same user.
This commit is contained in:
@@ -120,7 +120,7 @@ AccountTableForm::AccountTableForm(QWidget* aParent)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QString id = model->data(model->index(mCurrentRow, 1)).toString();
|
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);
|
DialogManager::Default()->requestAlertMessage(tr("Can't delete current log in account!"), DialogButtonMode::OkOnly);
|
||||||
|
|||||||
Reference in New Issue
Block a user