File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/kotlin/com/cosmotech/api/rbac Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ open class CsmRbac(
174174 logger.debug(" RBAC ${rbacSecurity} - Verifying default roles for permission: $permission " )
175175 val isAuthorized =
176176 this .verifyPermissionFromRole(
177- permission, rbacSecurity?.default ? : ROLE_VIEWER , rolesDefinition)
177+ permission, rbacSecurity?.default ? : ROLE_NONE , rolesDefinition)
178178 logger.debug(" RBAC ${rbacSecurity} - default roles for permission $permission : $isAuthorized " )
179179 return isAuthorized
180180 }
@@ -206,7 +206,7 @@ open class CsmRbac(
206206 }
207207
208208 internal fun getUserRole (rbacSecurity : RbacSecurity ? , user : String ): String {
209- return rbacSecurity?.accessControlList?.firstOrNull { it.id == user }?.role ? : ROLE_VIEWER
209+ return rbacSecurity?.accessControlList?.firstOrNull { it.id == user }?.role ? : ROLE_NONE
210210 }
211211
212212 internal fun getAdminCount (rbacSecurity : RbacSecurity ? , rolesDefinition : RolesDefinition ): Int {
You can’t perform that action at this time.
0 commit comments