Skip to content

Implement permission support for inline models #20

Open
@vdboor

Description

@vdboor

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions