mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-1001 Role users and connections API
This commit is contained in:
+1
-1
@@ -438,7 +438,7 @@ class CBSecurityController implements DBWSecurityController {
|
||||
public String[] getRoleSubjects(String roleId) throws DBCException {
|
||||
try (Connection dbCon = database.openConnection()) {
|
||||
try (PreparedStatement dbStat = dbCon.prepareStatement(
|
||||
"SELECT USER_ID FROM CB_USER_ROLE WHERE ROLE_ID")) {
|
||||
"SELECT USER_ID FROM CB_USER_ROLE WHERE ROLE_ID=?")) {
|
||||
dbStat.setString(1, roleId);
|
||||
List<String> subjects = new ArrayList<>();
|
||||
try (ResultSet dbResult = dbStat.executeQuery()) {
|
||||
|
||||
Reference in New Issue
Block a user