File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
src/main/java/io/kafbat/ui/model/rbac/permission
frontend/src/components/ACLPage/List Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 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
66RUN apk add --no-cache \
77 # snappy codec
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import ResourcePageHeading from 'components/common/ResourcePageHeading/ResourceP
2626import BreakableTextCell from 'components/common/NewTable/BreakableTextCell' ;
2727import { useQueryPersister } from 'components/common/NewTable/ColumnFilter' ;
2828import { ActionPermissionWrapper } from 'components/common/ActionComponent' ;
29+ import ClusterContext from 'components/contexts/ClusterContext' ;
2930
3031import * 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 ,
You can’t perform that action at this time.
0 commit comments