OnTopicCMS / OnTopic-Editor-AspNetCore

ASP.NET Core version of an editor for Ignia's OnTopic CMS.
4 stars 0 forks source link

Introduce a `DisableDelete` capability for the current topic #35

Closed JeremyCaney closed 3 years ago

JeremyCaney commented 3 years ago

Currently, DisableDelete prevents instances of a ContentTypeDescriptor from being deleted. Ideally, we'd introduce a way to protect individual ContentTypeDescriptor and AttributeDescriptors from being deleted, while still allowing instances of those content types to be deleted. This might be named, for example, IsSystem?

JeremyCaney commented 3 years ago

Introduced support for a new IsProtected attribute by adding it as a property on EditingTopicViewModel. Used this property to display a warning in the editor (df6023e), disable delete (c2e031d), and disable moves (dcfa0d2). This was merged into develop as part of 7d8bd09.