fix(frontend): add missing route guards to settings pages (#1700)
This commit is contained in:
@@ -2,8 +2,11 @@ import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import SettingsLayout from '../../components/Settings/SettingsLayout';
|
||||
import SettingsLogs from '../../components/Settings/SettingsLogs';
|
||||
import useRouteGuard from '../../hooks/useRouteGuard';
|
||||
import { Permission } from '../../hooks/useUser';
|
||||
|
||||
const SettingsLogsPage: NextPage = () => {
|
||||
useRouteGuard(Permission.MANAGE_SETTINGS);
|
||||
return (
|
||||
<SettingsLayout>
|
||||
<SettingsLogs />
|
||||
|
||||
Reference in New Issue
Block a user