feat: implement admin layout with authentication guard and responsive sidebar integration
Build and Release / release (push) Successful in 48s
Build and Release / release (push) Successful in 48s
This commit is contained in:
@@ -34,7 +34,7 @@ export default function AdminLayout({
|
|||||||
try {
|
try {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
const res = await apiGetCurrentUser();
|
const res = await apiGetCurrentUser();
|
||||||
const userData: UserData = res;
|
const userData: UserData = res.data;
|
||||||
|
|
||||||
const allowedRoles = ["ADMIN", "MOD", "HISTORIAN"];
|
const allowedRoles = ["ADMIN", "MOD", "HISTORIAN"];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user