HelloZeroNet / HelloZeroNet/ZeroNet

`siteCmd` CLI command with admin rights

Open
#2,651 2 comments 0 reactions 1 assignee Claimed by @HelloZeroNet View on GitHub
enhancement
Dominant language
JavaScript
Stars
18.8k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

**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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.