Commit a339661b authored by webchick's avatar webchick

Issue #2062017 by InternetDevels, rhm50, wesleydv, DeimoS: Replace...

Issue #2062017 by InternetDevels, rhm50, wesleydv, DeimoS: Replace user_access() calls with ->hasPermission() in rdf module.
parent feaee01e
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment