mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-01 21:07:34 +00:00
feat: Add config option for a default ACL on room creation
This allows for rooms to be created with a m.room.server_acl event by default. This event can be thought of as part of the initial_state events, although it is not provided by the client. Implements #775
This commit is contained in:
1 parent
202786c46b
commit
834f2caffe
4 files changed
+82
-3
No files matched your search
@@ -254,6 +254,13 @@ pub fn check(config: &Config) -> Result {
|
||||
));
|
||||
}
|
||||
|
||||
if config.default_room_acl_allow.is_some() && config.default_room_acl_deny.is_some() {
|
||||
return Err!(Config(
|
||||
"default_room_acl_deny",
|
||||
"Cannot provide a value for both default_room_acl_allow and default_room_acl_deny"
|
||||
));
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user