mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-25 14:45:54 -05:00
allow omitting permissions in config
This commit is contained in:
parent
4addf3c90c
commit
e9ac61f15c
@ -94,8 +94,13 @@ pub enum AddressConfig {
|
||||
#[derive(Debug, Default, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct Permissions {
|
||||
#[serde(default)]
|
||||
view_video: bool,
|
||||
|
||||
#[serde(default)]
|
||||
read_camera_configs: bool,
|
||||
|
||||
#[serde(default)]
|
||||
update_signals: bool,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user