Add enable/disable log query functionality (#2294)

* Add enable/disable log query functionality

This change adds the ability for server owners to allow log querying
from inside the client.  In the event the functionality is not allowed a
result is returned indicating the functionality is disabled.

* Added translation

Added the ability for the disabled messages to be translated.
This commit is contained in:
woogerboy21 2016-12-06 15:37:36 -05:00 committed by Zach H
parent c90c4ea41f
commit a6f1f4c01d
5 changed files with 56 additions and 3 deletions

View file

@ -825,4 +825,8 @@ int Servatrice::getISLNetworkPort() const {
int Servatrice::getIdleClientTimeout() const {
return settingsCache->value("server/idleclienttimeout", 3600).toInt();
}
bool Servatrice::getEnableLogQuery() const {
return settingsCache->value("logging/enablelogquery", false).toBool();
}