mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-26 15:15:56 -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)]
|
#[derive(Debug, Default, Deserialize)]
|
||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
pub struct Permissions {
|
pub struct Permissions {
|
||||||
|
#[serde(default)]
|
||||||
view_video: bool,
|
view_video: bool,
|
||||||
|
|
||||||
|
#[serde(default)]
|
||||||
read_camera_configs: bool,
|
read_camera_configs: bool,
|
||||||
|
|
||||||
|
#[serde(default)]
|
||||||
update_signals: bool,
|
update_signals: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user