mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 07:04:26 +08:00

Currently when using the shortcuts to delete a post the UI would show you the confirmation modal even if you don't have the right to do it. This commit fixes the issue at the root in the `deletePostWithConfirmation` function.