Skip to content

Commit

Permalink
redirects admin correctly when creating a class
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorCapCoder committed Nov 2, 2023
1 parent 975133f commit b2292b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/administration.js
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ router.post(
'ADMIN_VIEW',
);
if (isAdmin) {
res.redirect('/administration/classes/');
Configuration.get('FEATURE_SHOW_NEW_CLASS_VIEW_ENABLED') ? res.redirect('/administration/groups/classes/') : res.redirect('/administration/classes/');
} else {
res.redirect(`/administration/classes/${data._id}/manage`);
}
Expand Down

0 comments on commit b2292b0

Please sign in to comment.