Authorized.ts 432 Bytes
Newer Older
1
import RenderAuthorize from '@/components/Authorized';
ddcat1115's avatar
ddcat1115 committed
2
import { getAuthority } from './authority';
3 4 5
/* eslint-disable eslint-comments/disable-enable-pair */
/* eslint-disable import/no-mutable-exports */
let Authorized = RenderAuthorize(getAuthority());
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
6 7

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

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