fixed Delete Confirm Page not deleting articles
This commit is contained in:
parent
1193d76838
commit
bd7db5c7b7
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue