Skip to content

Commit

Permalink
Header now showing admin panel link to all admins
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Dec 11, 2024
1 parent f195a18 commit a8d0727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/modules/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Header = (): JSX.Element => {
});

const [loading, setLoading] = useState<boolean>(!!cookie && !data);
const admin = ['superadmin', 'updateusers'].some(perm => data?.permissions?.includes(perm));
const admin = !data?.permissions.every(perm => perm === 'default');

useEffect(() => {
setLogged(!!cookie);
Expand Down

0 comments on commit a8d0727

Please sign in to comment.