mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-01-06 11:06:01 -05:00
Added own id check before start to edit post
This commit is contained in:
parent
665bf5a1d9
commit
7273adc442
1 changed files with 7 additions and 0 deletions
|
|
@ -533,6 +533,13 @@ void PostedListWidgetWithModel::editPost()
|
|||
RsGxsId author_id;
|
||||
ui->idChooser->getChosenId(author_id);
|
||||
|
||||
if(!rsIdentity->isOwnId(author_id))
|
||||
{
|
||||
QString errorMessage = QString(tr("Attempt to edit a board post with an author that is not a own ID"));
|
||||
QMessageBox::warning(this, "RetroShare", errorMessage, QMessageBox::Ok, QMessageBox::Ok);
|
||||
return;
|
||||
}
|
||||
|
||||
PostedCreatePostDialog *msgDialog = new PostedCreatePostDialog(rsPosted, groupId(),author_id, post.mMeta.mMsgId);
|
||||
msgDialog->show();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue