diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-08-11 18:19:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 18:19:11 +0100 |
commit | bcdf9577a3db0727b4966cfdd3c4471ca6d3f1f6 (patch) | |
tree | bc9af1f38e6113e56d597c68e708bea587c49dc0 /syncapi | |
parent | 8b6ab272fb06e59d7747f3f52e1bdd462a52a463 (diff) |
Support for server ACLs (#1261)
* First pass at server ACLs (not efficient)
* Use transaction origin, update whitelist
* Fix federation API test
It's sufficient for us to return nothing in response to current state, so that the server ACL check returns no ACLs.
* More efficient server ACLs - hopefully
* Fix queries
* Fix queries
* Avoid panics by nil pointers
* Bug fixes
* Fix state event type
* Fix mutex
* Update logging
* Ignore port when matching servername
* Use read mutex
* Fix bugs
* Fix sync API test
* Comments
* Add tests, tweaks to behaviour
* Fix test output
Diffstat (limited to 'syncapi')
-rw-r--r-- | syncapi/internal/keychange_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/syncapi/internal/keychange_test.go b/syncapi/internal/keychange_test.go index 6765fa65..baf60ef0 100644 --- a/syncapi/internal/keychange_test.go +++ b/syncapi/internal/keychange_test.go @@ -114,6 +114,10 @@ func (s *mockCurrentStateAPI) QuerySharedUsers(ctx context.Context, req *api.Que return nil } +func (t *mockCurrentStateAPI) QueryServerBannedFromRoom(ctx context.Context, req *api.QueryServerBannedFromRoomRequest, res *api.QueryServerBannedFromRoomResponse) error { + return nil +} + type wantCatchup struct { hasNew bool changed []string |