feat: cron done, admin unfinished
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export const getCurrentUser = async () => {
|
||||
// Simulate fetching user info from an API
|
||||
return new Promise<{ username: string; isAdmin: boolean }>((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
username: "john_doe",
|
||||
isAdmin: true, // change to false to simulate non-admin
|
||||
});
|
||||
}, 200);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user