Repository navigation
Add ProjectMembership roles and per-tab access control - #14
Merged
Merged
Conversation
Introduce role presets (actor/writer/crew/director/producer), a site-admin and producer access dashboard, msmtp-backed password reset with log fallback, and server-side tab read/write enforcement for editors, PDF, backup, and shares. Co-authored-by: Jochen Krapf <jkdesign@me.com>
Co-authored-by: Jochen Krapf <jkdesign@me.com>
Concrete copy for the welcome page and HTML meta description: script editor, production planner, reports, and PDF. Co-authored-by: Jochen Krapf <jkdesign@me.com>
When DJANGO_BEHIND_PROXY=1, trust X-Forwarded-Host and set secure session/CSRF cookies even if DEBUG remains on. Co-authored-by: Jochen Krapf <jkdesign@me.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements ScriptumX user management per the access plan:
ProjectMembershipwith role presets (actor / writer / crew / director / producer),can_invite, and per-tab read/edit flagsowner→ producer,users→ crew,guests→ actor; legacy M2M kept in synccan(user, project, tab, write)used byEnv, tab filtering, and middleware enforcement (GET=read, POST=edit)/access/; password reset via msmtp backend (logs when no relay); privacy note; Delete menu fixed/etc/msmtprc(template until a relay is provided)/seedtests are not flaky on missing cache keysTests
X.tests_access(actor tabs/PDF/403, unassigned project, producer invite limits, staff ≠ all projects)X.tests.RevisionTests,X.tests_ux,authentication.tests,report.tests.ReportShareAndPresetTests,X.tests_data_safetyDeploy
PR branch deployed on
159.69.30.117(/opt/ScriptumX, compose rebuilt). Live/returns 200. msmtp installed with a root-only commented template (waiting on relay). Stack left running.