Issue #2062005 by InternetDevels: Replace user_access() calls with $account->hasPermission() in menu module.