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/client/admin/cloud/CloudRoute.js

17 lines
396 B

import React from 'react';
import { usePermission } from '../../contexts/AuthorizationContext';
import NotAuthorizedPage from '../../components/NotAuthorizedPage';
import CloudPage from './CloudPage';
function CloudRoute() {
const canManageCloud = usePermission('manage-cloud');
if (!canManageCloud) {
return <NotAuthorizedPage />;
}
return <CloudPage />;
}
export default CloudRoute;