fix: correctly check mobile menu permissions (#3271)

pull/3282/head
Ryan Cohen 2 years ago committed by GitHub
parent 5d1c6f7065
commit f4a22dc437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save