diff --git a/src/pages/system/Settings.tsx b/src/pages/system/Settings.tsx index bd829ce..b15ede4 100644 --- a/src/pages/system/Settings.tsx +++ b/src/pages/system/Settings.tsx @@ -12,11 +12,14 @@ import HideScrollbar from '@/components/common/HideScrollbar' import Card from '@/components/common/Card' import FlexBox from '@/components/common/FlexBox' import LoadingMask from '@/components/common/LoadingMask' +import Permission from '@/components/common/Permission.tsx' +import { hasPermission } from '@/util/auth.tsx' interface SettingsCardProps extends React.PropsWithChildren { icon: IconComponent title: string loading?: boolean + modifyOperationCode?: string expand?: React.ReactNode onReset?: () => void onSave?: () => void @@ -29,7 +32,7 @@ const SettingsCard: React.FC = (props) => {
{props.title}
{!props.loading ? ( - <> + {props.expand} @@ -37,7 +40,7 @@ const SettingsCard: React.FC = (props) => { - + ) : undefined} @@ -145,13 +148,18 @@ const MailSettings: React.FC = () => { loading={loading} onReset={handleOnReset} onSave={handleOnSave} + modifyOperationCode={'system:settings:modify:mail'} expand={ } > - + @@ -190,7 +198,9 @@ const Settings: React.FC = () => { - + + +