Skip to content

Commit e3c13ba

Browse files
author
Leshe4ka
committed
Merge branch 'main' of github.com:kafbat/kafka-ui into connector-topics
2 parents 6d7f645 + b4106e2 commit e3c13ba

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The tag is ignored when a sha is included but the reason to add it are:
22
# 1. Self Documentation: It is difficult to find out what the expected tag is given a sha alone
33
# 2. Helps dependabot during discovery of upgrades
4-
FROM azul/zulu-openjdk-alpine:21.0.8-jre-headless@sha256:49992ca94d08736b6827ad3289114acc7934a0da543f3bff208c3df46ed1108c
4+
FROM azul/zulu-openjdk-alpine:21.0.8-jre-headless@sha256:48356cf1b81243b6e236509bb6ae281969fc0eade03f622220973a4e224cd768
55

66
RUN apk add --no-cache \
77
# snappy codec

api/src/main/java/io/kafbat/ui/model/rbac/permission/TopicAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public enum TopicAction implements PermissibleAction {
1212
DELETE(VIEW),
1313
MESSAGES_READ(VIEW),
1414
MESSAGES_PRODUCE(VIEW),
15-
MESSAGES_DELETE(VIEW, EDIT),
15+
MESSAGES_DELETE(VIEW),
1616
ANALYSIS_VIEW(VIEW),
1717
ANALYSIS_RUN(VIEW, ANALYSIS_VIEW),
1818

frontend/src/components/ACLPage/List/List.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import ResourcePageHeading from 'components/common/ResourcePageHeading/ResourceP
2626
import BreakableTextCell from 'components/common/NewTable/BreakableTextCell';
2727
import { useQueryPersister } from 'components/common/NewTable/ColumnFilter';
2828
import { ActionPermissionWrapper } from 'components/common/ActionComponent';
29+
import ClusterContext from 'components/contexts/ClusterContext';
2930

3031
import * as S from './List.styled';
3132

@@ -35,6 +36,7 @@ const ACList: React.FC = () => {
3536
const [search, setSearch] = useState(searchParams.get('q') || '');
3637
const { data: aclList } = useAcls({ clusterName, search });
3738
const { deleteResource } = useDeleteAcl(clusterName);
39+
const { isReadOnly } = React.useContext(ClusterContext);
3840
const modal = useConfirm(true);
3941
const theme = useTheme();
4042
const {
@@ -198,6 +200,7 @@ const ACList: React.FC = () => {
198200
buttonType="primary"
199201
buttonSize="M"
200202
onClick={openFrom}
203+
disabled={isReadOnly}
201204
permission={{
202205
resource: ResourceType.ACL,
203206
action: Action.EDIT,

0 commit comments

Comments
 (0)