Skip to content

Commit

Permalink
Refactor NavBar component to include rank-based permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
S-e-b-a-s committed Aug 9, 2024
1 parent db16364 commit 32be1ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/common/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ const Navbar = () => {
permissions.includes("payslip.add_payslip") ||
permissions.includes("employment_management.view_employmentcertification") ||
permissions.includes("goals.add_goals") ||
permissions.includes("vacation.view_vacationrequest"));
permissions.includes("vacation.view_vacationrequest") ||
rank > 1);

const refreshToken = async (refreshTimer) => {
try {
Expand Down

0 comments on commit 32be1ca

Please sign in to comment.