From 7273adc44230b8a30a31ef98628c332710475be4 Mon Sep 17 00:00:00 2001 From: defnax <9952056+defnax@users.noreply.github.com> Date: Fri, 26 Dec 2025 17:00:43 +0100 Subject: [PATCH] Added own id check before start to edit post --- .../src/gui/Posted/PostedListWidgetWithModel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp b/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp index 9ef8e3215..c9c0f5f2f 100644 --- a/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp +++ b/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp @@ -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(); }