Skip to content

Commit 61d5353

Browse files
committed
removed "workspace" resource type
moved to the workspace-manager
1 parent d11a792 commit 61d5353

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

authorization/src/main/kotlin/org/modelix/authorization/KeycloakUtils.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ object KeycloakUtils {
123123
}
124124

125125
@Synchronized
126-
fun grantPermission(user: DecodedJWT, resourceSpec: KeycloakResource, scopes: Set<KeycloakScope>): Boolean {
126+
private fun grantPermission(user: DecodedJWT, resourceSpec: KeycloakResource, scopes: Set<KeycloakScope>): Boolean {
127127
val resource = ensureResourcesExists(resourceSpec, user)
128128
val ticketResponse = authzClient.protection(user.token).permission()
129129
.create(PermissionRequest(resource.id, *scopes.map { it.name }.toTypedArray()))
@@ -198,7 +198,6 @@ data class KeycloakResourceType(val name: String, val scopes: Set<KeycloakScope>
198198
val DEFAULT_TYPE = KeycloakResourceType("default", KeycloakScope.READ_WRITE)
199199
val MODEL_SERVER_ENTRY = KeycloakResourceType("model-server-entry", KeycloakScope.READ_WRITE_DELETE)
200200
val REPOSITORY = KeycloakResourceType("repository", KeycloakScope.READ_WRITE_DELETE_LIST)
201-
val WORKSPACE = KeycloakResourceType("workspace", KeycloakScope.READ_WRITE_DELETE_LIST, ownerManaged = true)
202201
}
203202
}
204203

0 commit comments

Comments
 (0)