diff --git a/api/src/main/java/io/kafbat/ui/model/rbac/AccessContext.java b/api/src/main/java/io/kafbat/ui/model/rbac/AccessContext.java index 04b210f46..9ccc10ccf 100644 --- a/api/src/main/java/io/kafbat/ui/model/rbac/AccessContext.java +++ b/api/src/main/java/io/kafbat/ui/model/rbac/AccessContext.java @@ -1,5 +1,7 @@ package io.kafbat.ui.model.rbac; +import static io.kafbat.ui.model.rbac.permission.SchemaAction.MODIFY_GLOBAL_COMPATIBILITY; + import com.google.common.base.Preconditions; import io.kafbat.ui.model.rbac.permission.AclAction; import io.kafbat.ui.model.rbac.permission.ApplicationConfigAction; @@ -132,7 +134,7 @@ public AccessContextBuilder schemaActions(String schema, SchemaAction... actions } public AccessContextBuilder schemaGlobalCompatChange() { - accessedResources.add(new SingleResourceAccess(Resource.SCHEMA, List.of(SchemaAction.MODIFY_GLOBAL_COMPATIBILITY))); + accessedResources.add(new SingleResourceAccess(Resource.SCHEMA, List.of(MODIFY_GLOBAL_COMPATIBILITY))); return this; }