Remove non-admin workbench

This commit is contained in:
Cheng Zhou
2026-05-21 15:48:19 +08:00
parent da6f2f2d41
commit 78247a8149
20 changed files with 36 additions and 1474 deletions
+1 -3
View File
@@ -248,10 +248,8 @@ const onSubmit = async () => {
}
if (studyStore.currentStudy) {
router.push("/project/overview");
} else if (auth.user?.is_admin) {
router.push("/admin/users");
} else {
router.push("/workbench");
router.push(auth.user?.is_admin ? "/admin/users" : "/admin/projects");
}
} catch (error: any) {
const status = error?.response?.status;