Remove non-admin workbench
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user