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 ] );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)