Skip to content

Commit 54b77c5

Browse files
committed
Merge branch 'bugfix/IsProtected-disable-delete' into release/5.1.0
Fixed a bug in #35 where the 'Delete' button was still being displayed if `IsProtected` was set on a topic.
2 parents 647de40 + c41fa02 commit 54b77c5

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)