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

Configure admin interface for non-superusers #2001

Open
5 tasks
thekaveman opened this issue Apr 4, 2024 · 0 comments
Open
5 tasks

Configure admin interface for non-superusers #2001

thekaveman opened this issue Apr 4, 2024 · 0 comments
Labels
back-end Django views, sessions, middleware, models, migrations etc. security Changes to improve or maintain the availability and resilience of the app

Comments

@thekaveman
Copy link
Member

thekaveman commented Apr 4, 2024

As an engineer, I want to:

  • Create groups of non-superusers to assign permissions
  • Allow groups to edit some model fields
  • Make model fields read-only to some groups
  • Make model fields invisible/not read or write to some groups
  • Prevent deletion of model instances by all groups
  • Automatically add certain users to certain groups upon login with Google SSO

As a non-superuser, I want to:

  • Log in to the admin interface using an approved Google SSO domain
  • View all models and model fields that I have permissions for
  • Edit all models and model fields that I have permissions for
  • Create new models when I have relevant permissions

Acceptance criteria

  • At least 1 group exists: Cal-ITP for direct Cal-ITP Benefits staff
  • All fields marked with Admin read permissions are not visible for non-superadmins / user groups
  • All fields marked with Transit Agency or Cal-ITP read permissions are visible for Cal-ITP group members
  • All fields marked with Admin write permissions are read-only for non-superadmins / user groups
  • All fields marked with Transit Agency or Cal-ITP write permissions can be edited by Cal-ITP group members

Additional context

@thekaveman thekaveman added back-end Django views, sessions, middleware, models, migrations etc. security Changes to improve or maintain the availability and resilience of the app labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Django views, sessions, middleware, models, migrations etc. security Changes to improve or maintain the availability and resilience of the app
Projects
Status: Stretch
Development

No branches or pull requests

1 participant