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:
@ -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;
|
||||
|
Reference in New Issue
Block a user