feat: permission and security fixes (#5266)
This commit is contained in:
parent
a1d8c86ee3
commit
cc4a4ec796
13 changed files with 186 additions and 104 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue