From 9481c0ff7ed778bc79700a4cba3ddc18d5bc0354 Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Sat, 26 Aug 2023 14:01:03 +0000 Subject: [PATCH] Fix ssowat/conf.json format --- yunohost-api/src/permissions/ssowat.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yunohost-api/src/permissions/ssowat.rs b/yunohost-api/src/permissions/ssowat.rs index 5cb6f90..60e87ae 100644 --- a/yunohost-api/src/permissions/ssowat.rs +++ b/yunohost-api/src/permissions/ssowat.rs @@ -86,12 +86,13 @@ pub struct Permission { public: bool, show_tile: bool, uris: Vec, + #[serde(default)] use_remote_user_in_nginx_conf: bool, users: Vec, } #[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)] +#[serde(transparent)] pub struct PermissionName { - #[serde(flatten)] name: String, }