1
0
mirror of https://github.com/fallenbagel/jellyseerr.git synced 2026-01-11 17:16:50 -05:00

fix(frontend): add missing route guards to settings pages (#1700)

This commit is contained in:
TheCatLady
2021-05-30 20:18:38 -04:00
committed by GitHub
parent 310cdb36df
commit 78fc1f7b7d
10 changed files with 31 additions and 1 deletions

View File

@@ -3,8 +3,11 @@ import React from 'react';
import NotificationsLunaSea from '../../../components/Settings/Notifications/NotificationsLunaSea';
import SettingsLayout from '../../../components/Settings/SettingsLayout';
import SettingsNotifications from '../../../components/Settings/SettingsNotifications';
import useRouteGuard from '../../../hooks/useRouteGuard';
import { Permission } from '../../../hooks/useUser';
const NotificationsPage: NextPage = () => {
useRouteGuard(Permission.MANAGE_SETTINGS);
return (
<SettingsLayout>
<SettingsNotifications>