openwisp / openwisp/openwisp-users
[feature] Allow non superadmin to create, manage and own org
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 179
- Forks
- 96
- Avg merge
- 13h 40m
- Merged PRs (30d)
- 16
Description
⚠️ Not suited for beginnger contributors.
If a staff user which is not superadmin has permission to create/change/delete organizations, we must make sure that when this user creates an organization, their account is flagged as owner and automatically associated to this org as manager (OrganizationUser(is_admin=True)).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing organization creation and the OrganizationUser model, including the permission checks for staff users who are not superadmins. Done means an authorized non-superadmin can create, change, and delete organizations, and a newly created organization automatically marks that account as owner and associates it as an admin OrganizationUser.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- authorization, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100