-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add granular permission and group system for conference management #60
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2045e42
better sidebar nav
JacobCoffee 903e5a7
feat: add granular permissions to Conference and TravelGrant models
JacobCoffee 549a2d1
feat: replace ManagePermissionMixin with ConferencePermissionMixin an…
JacobCoffee aa9c08a
feat: add required_permission to all manage view modules
JacobCoffee ca9218d
feat: rewrite setup_groups with 10 granular permission groups
JacobCoffee cc7b379
feat: add permission guards to sidebar template
JacobCoffee 14a79ff
fix: correct misplaced required_permission attributes and generate mi…
JacobCoffee 74b3499
fix: update test fixtures and imports for granular permission system
JacobCoffee 6942726
fix: address Codex security review findings on permissions
JacobCoffee fef118d
fix: address PR review comments on permissions
JacobCoffee 449dce6
fix: hide export buttons for users without export_reports permission
JacobCoffee ee36557
Merge remote-tracking branch 'origin/main' into feat/granular-permiss…
JacobCoffee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
42 changes: 42 additions & 0 deletions
42
src/django_program/conference/migrations/0010_alter_conference_options.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # Generated by Django 5.2.11 on 2026-03-19 18:27 | ||
|
|
||
| from django.db import migrations | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
| dependencies = [ | ||
| ("program_conference", "0009_featureflags_visa_letters_enabled"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterModelOptions( | ||
| name="conference", | ||
| options={ | ||
| "ordering": ["-start_date"], | ||
| "permissions": [ | ||
| ("view_dashboard", "Can view conference dashboard"), | ||
| ("manage_conference_settings", "Can edit conference settings and sync"), | ||
| ("view_program", "Can view program content"), | ||
| ("change_program", "Can edit program content"), | ||
| ("view_registration", "Can view attendees and orders"), | ||
| ("change_registration", "Can manage orders and visa letters"), | ||
| ("view_commerce", "Can view ticket types, add-ons, vouchers"), | ||
| ("change_commerce", "Can manage ticket types, add-ons, vouchers"), | ||
| ("view_badges", "Can view badges and templates"), | ||
| ("change_badges", "Can manage badges and templates"), | ||
| ("view_sponsors", "Can view sponsors"), | ||
| ("change_sponsors", "Can manage sponsors"), | ||
| ("view_bulk_purchases", "Can view bulk purchases"), | ||
| ("change_bulk_purchases", "Can manage bulk purchases"), | ||
| ("view_finance", "Can view financial dashboard and expenses"), | ||
| ("change_finance", "Can manage expenses"), | ||
| ("view_reports", "Can view reports and analytics"), | ||
| ("export_reports", "Can export report data"), | ||
| ("view_checkin", "Can access check-in"), | ||
| ("use_terminal", "Can use Terminal POS"), | ||
| ("view_overrides", "Can view Pretalx overrides"), | ||
| ("change_overrides", "Can manage Pretalx overrides"), | ||
| ], | ||
| }, | ||
| ), | ||
| ] |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.