django-fluent-contents icon indicating copy to clipboard operation
django-fluent-contents copied to clipboard

Implement permission support for inline models

Open vdboor opened this issue 11 years ago • 1 comments

When users don't have permission to all inline models, the content may still be edited, or cause errors.

For example, when users have no permission on the Placeholder model, the inline will try to re-create the object while it already exists. Error:

IntegrityError: duplicate key value violates unique constraint "fluent_contents_placeholde_parent_type_id_451c85966d08dedf_uniq"
DETAIL:  Key (parent_type_id, parent_id, slot)=(29, 52, blog_contents) already exists.

When the ContentItem inlines don't have edit permission, the elements should still be displayed, but not made editable.

vdboor avatar Jun 24 '13 13:06 vdboor

When the ContentItem inlines don't have edit permission, the elements should still be displayed, but not made editable.

Or at least show normal error not the strange exception.

Uznick avatar Mar 30 '16 08:03 Uznick