openwisp / openwisp/openwisp-users

[feature] Allow non superadmin to create, manage and own org

Open
#350 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.