Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[feature] Show shared objects for org-wide batch commands as read-only to non-superusers

Aperta
#1,439 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
django, python

Direzione di ricerca

Attendi il lavoro correlato di openwisp-users, in particolare la PR #444, prima di iniziare. Poi esamina BatchCommandListView e BatchCommandDetailView in openwisp-controller, inclusi i filtri temporanei del queryset e i TODOs introdotti nell'ambito della PR #1395. Il lavoro è completo quando i comandi batch con organization=null sono visibili in sola lettura agli utenti non superuser, le mutazioni rimangono limitate e i campi sensibili sono nascosti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

blocked enhancement

Is your feature request related to a problem? Please describe.
Org-wide batch commands (organization=null) created by superusers are currently visible to all organization managers/admins via the REST API. However, there is no proper support in openwisp-users for showing shared objects as read-only to non-superusers. This means org admins can see batch commands they didn't create and shouldn't have full access to.

Describe the solution you'd like

  1. Implement shared object read-only support in openwisp-users so non-superusers can see objects with organization=null but cannot modify them.
  2. Once https://github.com/openwisp/openwisp-users/pull/444 merged, remove the temporary queryset filter in BatchCommandListView and BatchCommandDetailView that excludes organization=null for non-superusers.
  3. Ensure org-wide batch commands are visible as read-only to org managers, while keeping create/update/delete restricted to superusers.
  4. Hide sensitive data such as primary keys, error logs, and other restricted information from non-superusers for objects not in their managed organizations.

Describe alternatives you've considered
PR https://github.com/openwisp/openwisp-controller/pull/1395 implements the Mass Command model and REST APIs with a temporary queryset filter (with TODO comments) to exclude organization=null commands for non-superusers. This workaround will be removed once openwisp-users properly supports shared objects as read-only.

Additional context

Note: Do not pick this up until the related issues/PR are closed.

Lingua principale
Python
Stelle
779
Fork
328
Merge medio
2g 19h
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openwisp/openwisp-controller

Tutte le issue di openwisp/openwisp-controller

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.