(final TSDB tsdb, final Channel chan, final net.opentsdb.query.pojo.Query data_query)
| 844 | } |
| 845 | |
| 846 | private void checkAuthorization(final TSDB tsdb, final Channel chan, final net.opentsdb.query.pojo.Query data_query) { |
| 847 | if (tsdb.getConfig().getBoolean("tsd.core.authentication.enable")) { |
| 848 | if (tsdb.getAuth().isReady(tsdb, chan)) { |
| 849 | final AuthState state = tsdb.getAuth().authorization().allowQuery( |
| 850 | (AuthState) chan.getAttachment(), data_query); |
| 851 | handleAuthorization(state); |
| 852 | } |
| 853 | } |
| 854 | } |
| 855 | |
| 856 | private void checkAuthorization(final TSDB tsdb, final Channel chan, final TSQuery data_query) { |
| 857 | if (tsdb.getConfig().getBoolean("tsd.core.authentication.enable")) { |
no test coverage detected