Authorized.js 417 Bytes
Newer Older
徐立's avatar
徐立 committed
1
import RenderAuthorize from '../Authorized';
徐立's avatar
徐立 committed
2 3 4 5 6 7 8 9
import { getAuthority } from './authority';
/* eslint-disable eslint-comments/disable-enable-pair */

/* eslint-disable import/no-mutable-exports */

let Authorized = RenderAuthorize(getAuthority()); // Reload the rights component

const reloadAuthorized = () => {
10
	Authorized = RenderAuthorize(getAuthority());
徐立's avatar
徐立 committed
11 12 13 14
};

export { reloadAuthorized };
export default Authorized;