Use the new ToadletContext.checkFullAccess() instead of isAllowedFullAccess()+sendUnauthorizedPage()