private static void EnsureAdmin(ChatUser user) { if (!user.IsAdmin) { throw new InvalidOperationException("You are not an admin"); } }