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

DRAFT: Add custom_permission_policies app (child media implementation) #48

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ababic
Copy link
Contributor

@ababic ababic commented Dec 3, 2024

What is the context of this PR?

Follow up to #42 that introduces a concept of 'child media' for pages and other objects, which can be used to facilitate custom permission policies.

Model objects that are considered 'parents' of media should subclass the included MediaParentMixin, which is used to drive association of media items with instances of that model.

Model objects that are considered 'children' of those parents should subclass the included MediaChildMixin, which introduces fields to store the details of the parent object.

This initial implementation focusses on solutions for image and document models, but may be extended in future to cover additional models like 'Charts', which may also need to be associated with a parent page to restrict access to specific objects in Wagtail.

How to review

TBC (will be populated when ready for review)

Follow-up Actions

TBC (will be populated when this work is finalised)

@ababic ababic requested a review from a team as a code owner December 3, 2024 11:33
@ababic ababic marked this pull request as draft December 3, 2024 11:33
@ababic ababic force-pushed the feature/child-media branch from bf6d6d1 to 1a3a3ce Compare December 3, 2024 11:40
@ababic ababic force-pushed the feature/child-media branch from 1a3a3ce to 4bc509f Compare December 3, 2024 11:46
@ababic ababic mentioned this pull request Dec 4, 2024
2 tasks
@ababic ababic changed the title Add custom_permission_policies app (child media implementation) DRAFT: Add custom_permission_policies app (child media implementation) Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant