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/permissions/PermissionsRouter.js

16 lines
402 B

import React from 'react';
import { useRouteParameter } from '../../contexts/RouterContext';
import UsersInRole from './UsersInRole';
import PermissionsTable from './PermissionsTable';
const PermissionsRouter = () => {
const context = useRouteParameter('context');
if (context === 'users-in-role') {
return <UsersInRole />;
}
return <PermissionsTable />;
};
export default PermissionsRouter;