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:
Ainur
2022-04-18 15:29:44 +03:00
committed by GitHub
parent d65c1d526c
commit b2cecb6025
@@ -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,