HelloZeroNet / HelloZeroNet/ZeroNet
The user-specific `max_size` is ignored when it is less than `max_size` from `permission_rules`
- Dominant language
- JavaScript
- Stars
- 18.8k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
For example, `geekless@zeroid.bit` still has `max_size` of 10000 bytes:
```json
{
"user_contents": {
"cert_signers": {
"zeroid.bit": [
"1iD5ZQJMNXu43w1qLB8sfdHVKppVMduGz"
]
},
"permission_rules": {
".*": {
"files_allowed": "data.json",
"max_size": 10000
}
},
"permissions": {
"geekless@zeroid.bit": {
"max_size": 5000
}
}
}
}
```
Shouldn't per-user permissions always take the precedence over permission rules?
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue provides no file or test entry point; start by locating the handling of permission_rules, per-user permissions, and max_size. Confirm the behavior with the supplied configuration, then ensure the per-user value of 5000 takes precedence over the rule value of 10000 and add or update coverage for that case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authorization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100