1
0
mirror of https://github.com/yacy/yacy_search_server.git synced 2025-07-22 09:14:38 -04:00

only admins should be able to force a commit

This commit is contained in:
Michael Peter Christen
2013-11-26 07:03:20 +01:00
parent 2c39b65409
commit 234ca720f5

@ -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;