Skip to content

Commit

Permalink
Hide breadcrumb for unauthorized members
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Jan 28, 2025
1 parent 7507479 commit 4e63427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servicedesk-gui/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const App = () => {
.then(res => {
useAppStore.setState(() => ({user: res}));
setLoading(false);
setIsAuthenticated(true);
if (res.serviceDeskMember) {
setIsAuthenticated(true);
navigate("/home");
} else {
navigate("/404");
Expand Down

0 comments on commit 4e63427

Please sign in to comment.