summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2013-10-09 04:02:44 (GMT)
committerwebchick2013-10-09 04:02:44 (GMT)
commita339661b0f48df27e04f68298219087e6a8c77f3 (patch)
treeee2ca58c2c8fecfc19a4ee5388b725e941fa5dfc
parentfeaee01eafc38b43352dbeb8a536db35f2103b26 (diff)
Issue #2062017 by InternetDevels, rhm50, wesleydv, DeimoS: Replace user_access() calls with ->hasPermission() in rdf module.
-rw-r--r--core/modules/rdf/rdf.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module
index 4cc462c..08cd24c 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 <head> 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(