only admins should be able to force a commit

pull/1/head
Michael Peter Christen 11 years ago
parent 2c39b65409
commit 234ca720f5

@ -98,7 +98,7 @@ public class HostBrowser {
} }
String path = post == null ? "" : post.get("path", "").trim(); 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) { if (post == null || env == null) {
prop.putNum("ucount", fulltext.collectionSize()); prop.putNum("ucount", fulltext.collectionSize());
return prop; return prop;

Loading…
Cancel
Save