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

Tenant based admin #1

Open
saxix opened this issue Jul 3, 2024 · 0 comments
Open

Tenant based admin #1

saxix opened this issue Jul 3, 2024 · 0 comments

Comments

@saxix
Copy link
Member

saxix commented Jul 3, 2024

Django admin must segregate data based on "active" CountryOffice.

Business Rules:

  • We use CountryOffice model as Tenant
  • "Non Tenant" models (es. User, Group, CountryOffice...) are available ONLY when HQ is the selected CountryOffice
  • "Tenant" models (es. Household, Individuals) are available ONLY when NON HQ is the selected CountryOffice
  • Access to Tenant is granted using standard Django permission system using the "UserRole" table where we set which role is available for a user in a specific CountryOffice
  • Role is defined using "Group" Django.auth model
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

No branches or pull requests

1 participant