Skip to content

Commit c41fa02

Browse files
committed
Bug Fix: IsProtected not removing Delete button
An error in the Boolean logic for `IsProtected` results in the `Delete` button not being removed for protected topics. This is fixed by updating the Boolean logic.
1 parent 647de40 commit c41fa02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.Editor.AspNetCore/Areas/Editor/Views/Shared/_Toolbar.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<!-- /Export -->
4545

4646
<!-- Delete -->
47-
@if (!Model.IsNew && !Model.ContentTypeDescriptor.DisableDelete || Model.Topic.IsProtected) {
47+
@if (!Model.IsNew && !Model.ContentTypeDescriptor.DisableDelete && !Model.Topic.IsProtected) {
4848
<a
4949
id ="DeletePageButton"
5050
data-title ="@Model.Topic.Title?.Replace("\"", "&quot;")"

0 commit comments

Comments
 (0)