From 234ca720f54c3b36ee283805f652aec4a5365aec Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Tue, 26 Nov 2013 07:03:20 +0100 Subject: [PATCH] only admins should be able to force a commit --- htroot/HostBrowser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htroot/HostBrowser.java b/htroot/HostBrowser.java index 242b33ada..e8c2ba3b9 100644 --- a/htroot/HostBrowser.java +++ b/htroot/HostBrowser.java @@ -98,7 +98,7 @@ public class HostBrowser { } String path = post == null ? "" : post.get("path", "").trim(); - sb.index.fulltext().commit(true); + if (admin) sb.index.fulltext().commit(true); if (post == null || env == null) { prop.putNum("ucount", fulltext.collectionSize()); return prop;