@page "/Moderation/DraupnirProtectedRoomsEditor" @using System.Text.Json.Serialization @using LibMatrix.EventTypes.Spec.State @using LibMatrix.RoomTypes
@* Checkbox column *@ | Kick? | @* PL > kick *@Ban? | @* PL > ban *@ACL? | @* PL > m.room.server_acls event *@Room ID | Room name |
---|---|---|---|---|---|
@(room.PowerLevels.Kick <= room.PowerLevels.GetUserPowerLevel(hs.UserId) ? "X" : "") | @(room.PowerLevels.Ban <= room.PowerLevels.GetUserPowerLevel(hs.UserId) ? "X" : "") | @(room.PowerLevels.UserHasStatePermission(hs.UserId, RoomServerACLEventContent.EventId) ? "X" : "") | @room.Room.RoomId | @room.RoomName |