Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement permission support for inline models #20

Open
vdboor opened this issue Jun 24, 2013 · 1 comment
Open

Implement permission support for inline models #20

vdboor opened this issue Jun 24, 2013 · 1 comment

Comments

@vdboor
Copy link
Contributor

vdboor commented Jun 24, 2013

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.

@Uznick
Copy link

Uznick commented Mar 30, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants