The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/views/admin/viewLogs/ViewLogsRoute.tsx

18 lines
455 B

import { usePermission } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
import NotAuthorizedPage from '../../notAuthorized/NotAuthorizedPage';
import ViewLogsPage from './ViewLogsPage';
const ViewLogsRoute = (): ReactElement => {
const canViewLogs = usePermission('view-logs');
if (!canViewLogs) {
return <NotAuthorizedPage />;
}
return <ViewLogsPage />;
};
export default ViewLogsRoute;