Authorized.js 350 Bytes
Newer Older
ddcat1115's avatar
ddcat1115 committed
1 2 3
import RenderAuthorized from '../components/Authorized';
import { getAuthority } from './authority';

ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
4 5 6 7 8 9 10 11
let Authorized = RenderAuthorized(getAuthority()); // eslint-disable-line

// Reload the rights component
const reloadAuthorized = () => {
  Authorized = RenderAuthorized(getAuthority());
};

export { reloadAuthorized };
ddcat1115's avatar
ddcat1115 committed
12
export default Authorized;