In the method permission_denied, did not use the request parameter.