Issue #2061973 by InternetDevels, naveenvalecha: Replace user_access() calls with $account->hasPermission() in book module.