fix(modqueue): enforce role-gated access with not-allowed view

This commit is contained in:
plebeius
2026-02-16 19:17:38 +08:00
parent 6befc6bacd
commit 9c558d21c1
6 changed files with 99 additions and 15 deletions
+1
View File
@@ -0,0 +1 @@
export { default } from './not-allowed';
+30
View File
@@ -0,0 +1,30 @@
import { Link } from 'react-router-dom';
import { HomeLogo } from '../home';
import NotFoundImage from '../../components/not-found-image';
import styles from '../not-found/not-found.module.css';
const NotAllowed = () => {
return (
<div className={styles.wrapper}>
<div className={styles.content}>
<HomeLogo />
<div className={styles.boxOuter}>
<div className={styles.boxInner}>
<div className={styles.boxBar}>
<h2>Not Allowed</h2>
</div>
<div className={styles.boxContent}>
<NotFoundImage />
<br />
<div className={styles.backToBoard}>
[<Link to='/'>Back to home</Link>]
</div>
</div>
</div>
</div>
</div>
</div>
);
};
export default NotAllowed;