Skip to content

Commit

Permalink
fix(model-server): make modelix-admin also model-server admin
Browse files Browse the repository at this point in the history
When a user is assigned the role modelix-admin in keycloak then he should have admin permissions on
the model-server.
  • Loading branch information
slisson committed Nov 25, 2024
1 parent 2168ffe commit 7411ba1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.modelix.model.server

import org.modelix.authorization.permissions.PermissionParts
import org.modelix.authorization.permissions.PermissionSchemaBase
import org.modelix.authorization.permissions.buildPermissionSchema
import org.modelix.model.lazy.BranchReference
import org.modelix.model.lazy.RepositoryId
Expand Down Expand Up @@ -45,7 +46,9 @@ object ModelServerPermissionSchema {

val SCHEMA = buildPermissionSchema {
resource(MODEL_SERVER) {
permission(ADMIN)
permission(ADMIN) {
includedIn(PermissionSchemaBase.cluster.admin.parts[0], PermissionSchemaBase.cluster.admin.parts[1])
}
}

resource(PERMISSION_SCHEMA) {
Expand Down

0 comments on commit 7411ba1

Please sign in to comment.