Merge remote-tracking branch 'origin/devel' into feat-routing

This commit is contained in:
Wroud
2020-05-28 18:01:04 +03:00
@@ -106,7 +106,7 @@ class CBSecurityController implements DBWSecurityController {
@Override
public WebRole[] getUserRoles(String userId) throws DBCException {
try (Connection dbCon = database.openConnection()) {
try (PreparedStatement dbStat = dbCon.prepareStatement("SELECT * FROM CB_USER WHERE USER_ID=?")) {
try (PreparedStatement dbStat = dbCon.prepareStatement("SELECT * FROM CB_USER_ROLE WHERE USER_ID=?")) {
dbStat.setString(1, userId);
List<WebRole> roles = new ArrayList<>();
try (ResultSet dbResult = dbStat.executeQuery()) {