fixed Delete Confirm Page not deleting articles

This commit is contained in:
Mia Rose Winter 2024-04-08 12:13:22 +02:00
parent 1193d76838
commit bd7db5c7b7
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -52,7 +52,7 @@
}
private async Task Delete() {
if (Article.AllowedToDelete(HttpContext.User)) return;
if (!Article.AllowedToDelete(HttpContext.User)) return;
var context = await ContextFactory.CreateDbContextAsync();
Article!.IsDeleted = true;