fix: correctly check mobile menu permissions (#3271)

pull/3743/head
Ryan Cohen 2 years ago committed by Mike Kao
parent 3279857af7
commit c8a5752c76

@ -118,7 +118,11 @@ const MobileMenu = () => {
];
const filteredLinks = menuLinks.filter(
(link) => !link.requiredPermission || hasPermission(link.requiredPermission)
(link) =>
!link.requiredPermission ||
hasPermission(link.requiredPermission, {
type: link.permissionType ?? 'and',
})
);
return (

Loading…
Cancel
Save