improve wall filter, add allowDoPrivileged

This commit is contained in:
wenshao
2012-12-10 18:16:18 +08:00
parent 2abc2d207e
commit b4ba5d6a3f
3 changed files with 16 additions and 2 deletions
@@ -120,7 +120,7 @@ public abstract class WallProvider {
}
public List<Violation> check(String sql) {
if (privileged.get() == Boolean.TRUE) {
if (config.isAllowDoPrivileged() && privileged.get() == Boolean.TRUE) {
return Collections.emptyList();
}