django-cms / djangocms-versioning

General purpose versioning package for Django CMS 4 and above.
Other
33 stars 29 forks source link

[DRAFT] Fix: Disable extended admin mixin edit button when content isn't editable #253

Closed adam-murray closed 2 years ago

adam-murray commented 2 years ago

Description Error was being thrown when the edit button was pressed on uneditable content within any admin that used the ExtendedVersionAdminMixin. This was due to the wrong template being used in the _get_edit_link method. This PR also includes tests to cover the same criteria with the manage versions button.

Related resources

Screenshot 2022-02-07 at 13 38 45

Added Here