diff --git a/src/components/common/settings/sections/server/BanSettingsSection.tsx b/src/components/common/settings/sections/server/BanSettingsSection.tsx index 899baecc..0b279fad 100644 --- a/src/components/common/settings/sections/server/BanSettingsSection.tsx +++ b/src/components/common/settings/sections/server/BanSettingsSection.tsx @@ -44,25 +44,27 @@ export const BanSettingsSection = observer(({server}: {server: Server}) => { {b.reason ?? t('app.servers.settings.bans.no_reason')} - { - server.unbanUser(b._id.user); - triggerReload(reload + 1); - }}> - - - - + {server.havePermission('BanMembers') ? ( + { + server.unbanUser(b._id.user); + triggerReload(reload + 1); + }}> + + + + + ) : null} )) ) : ( diff --git a/src/components/common/settings/sections/server/InviteSettingsSection.tsx b/src/components/common/settings/sections/server/InviteSettingsSection.tsx index e2a9e350..0f3fde5a 100644 --- a/src/components/common/settings/sections/server/InviteSettingsSection.tsx +++ b/src/components/common/settings/sections/server/InviteSettingsSection.tsx @@ -7,8 +7,8 @@ import MaterialIcon from 'react-native-vector-icons/MaterialIcons'; import {API, Server} from 'revolt.js'; -import {currentTheme, styles} from '../../../../../Theme'; -import {Text} from '../../../atoms'; +import {currentTheme, styles} from '@rvmob/Theme'; +import {Text} from '@rvmob/components/common/atoms'; export const InviteSettingsSection = observer(({server}: {server: Server}) => { const {t} = useTranslation(); @@ -43,7 +43,7 @@ export const InviteSettingsSection = observer(({server}: {server: Server}) => { @{i.creator} - #{i.channel} - {i._id.length === 8 ? ( + {server.havePermission('ManageServer') && i._id.length === 8 ? ( {