HelloZeroNet / HelloZeroNet/ZeroNet

`siteCmd` CLI command with admin rights

Aperta
#2,651 2 commenti 0 reazioni 1 assegnatario Rivendicata da @HelloZeroNet Vedi su GitHub
enhancement
Lingua principale
JavaScript
Stelle
18.8k
Fork
2.3k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Is your feature request related to a problem? Please describe.**

ZeroNet uses `id=1` for commands issued by `siteCmd` CLI command:
https://github.com/HelloZeroNet/ZeroNet/blob/29dac8a1889e6c23773292718bec813e00ae2d74/src/main.py#L381
...which means that the queries are executed without ADMIN rights, unless the site has ADMIN rights itself.

**Describe the solution you'd like**
Either `siteCmdAdmin` or `siteCmd --admin` should set `id` to an ADMIN id.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.