Class RoomAcls
The server ACLs of rooms here: requests and transactions of a server the room's m.room.server_acl denies are refused for that room.
Assembly: Uniform.Matrix.Server.dll
public sealed class RoomAcls
Constructors
|
Edit this page
View Source
RoomAcls(IDbContextFactory<ServerDbContext>)
Declaration
public RoomAcls(IDbContextFactory<ServerDbContext> contexts)
Parameters
Fields
|
Edit this page
View Source
Event type of server ACLs.
Declaration
public const string EventType = "m.room.server_acl"
Field Value
Methods
|
Edit this page
View Source
Throw M_FORBIDDEN when the ACL of roomId denies serverName.
Declaration
public Task AssertAllowedAsync(string serverName, string? roomId, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Return whether serverName may take part in roomId; true for rooms without an ACL and rooms not here.
Declaration
public Task<bool> IsAllowedAsync(string serverName, string? roomId, CancellationToken cancellationToken)
Parameters
Returns