mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-1906 throw exception if user has no roles (#771)
* CB-1906 throw exception if user has no roles * CB-1906 throw exception if user has no permissions
This commit is contained in:
+4
@@ -227,6 +227,10 @@ public class WebServiceAuthImpl implements DBWServiceAuth {
|
||||
providerConfig,
|
||||
userCredentials);
|
||||
|
||||
if (securityController.getUserPermissions(userId).isEmpty()) {
|
||||
throw new DBWebException("Access denied (no permissions)");
|
||||
}
|
||||
|
||||
WebAuthInfo authInfo = new WebAuthInfo(
|
||||
webSession,
|
||||
user,
|
||||
|
||||
Reference in New Issue
Block a user