add_menu_page not show link for custom role

I understand the problem.
My customer had purchased a paid plugin that, on the action “admin_menu”, scrolled through the entire global variable $menu and eliminated all the items that were not allowed by their plugin

unset( $menu[ $key ] );

error code: 523