feat: permission and security fixes (#5266)
This commit is contained in:
@@ -26,6 +26,7 @@ type Props = {
|
||||
notionActions?: {
|
||||
onChangeAuthorizedPage: () => void
|
||||
}
|
||||
readOnly: boolean
|
||||
}
|
||||
|
||||
const ConfigItem: FC<Props> = ({
|
||||
@@ -33,6 +34,7 @@ const ConfigItem: FC<Props> = ({
|
||||
payload,
|
||||
onRemove,
|
||||
notionActions,
|
||||
readOnly,
|
||||
}) => {
|
||||
const { t } = useTranslation()
|
||||
const isNotion = type === DataSourceType.notion
|
||||
@@ -65,7 +67,7 @@ const ConfigItem: FC<Props> = ({
|
||||
)}
|
||||
|
||||
{
|
||||
isWebsite && (
|
||||
isWebsite && !readOnly && (
|
||||
<div className='p-2 text-gray-500 cursor-pointer rounded-md hover:bg-black/5' onClick={onRemove} >
|
||||
<Trash03 className='w-4 h-4 ' />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user