From a339661b0f48df27e04f68298219087e6a8c77f3 Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 8 Oct 2013 21:02:44 -0700 Subject: [PATCH] Issue #2062017 by InternetDevels, rhm50, wesleydv, DeimoS: Replace user_access() calls with ->hasPermission() in rdf module. --- core/modules/rdf/rdf.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module index 4cc462c4560..08cd24c65b8 100644 --- a/core/modules/rdf/rdf.module +++ b/core/modules/rdf/rdf.module @@ -332,7 +332,7 @@ function rdf_preprocess_node(&$variables) { // In full node view, the number of comments is not displayed by // node.html.twig so it is expressed in RDFa in the tag of the HTML // page. - if ($variables['page'] && user_access('access comments')) { + if ($variables['page'] && \Drupal::currentUser()->hasPermission('access comments')) { $element = array( '#tag' => 'meta', '#attributes' => array(