mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 06:23:10 -06:00
Add comment as to why we return the entire content for ACLs
This commit is contained in:
parent
2c29e1c9c8
commit
3125f4b033
|
|
@ -236,6 +236,8 @@ func ExtractContentValue(ev *types.HeaderedEvent) string {
|
|||
case "m.room.guest_access":
|
||||
key = "guest_access"
|
||||
case "m.room.server_acl":
|
||||
// We need the entire content and not only one key, so we can use it
|
||||
// on startup to generate the ACLs. This is merely a workaround.
|
||||
return string(content)
|
||||
}
|
||||
result := gjson.GetBytes(content, key)
|
||||
|
|
|
|||
Loading…
Reference in a new issue