@* @if (PowerLevels.UserHasStatePermission(Homeserver.WhoAmI.UserId, Policy.Type)) { *@
@if (true) {
Edit
Remove
@if (Policy.IsLegacyType) {
Update policy type
}
@if (TypedContent.Entity?.StartsWith("@*:", StringComparison.Ordinal) == true) {
Convert to ACL
}
@* @if (PolicyTypeIds[typeof(ServerPolicyRuleEventContent)].Contains(Policy.Type)) { *@
@*
Make permanent *@
@* *@
@* @if (CurrentUserIsDraupnir) { *@
@*
Kick *@
@* users @(ActiveKicks.TryGetValue(Policy, out var kick) ? $"({kick})" : null) *@
@* *@
@* } *@
// }
}
else {
No permission to modify
}