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

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

// Reload the rights component
const reloadAuthorized = () => {
8
  Authorized = RenderAuthorize(getAuthority());
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
9 10 11
};

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