Issue by InternetDevels, rhm50, wesleydv, DeimoS: Replace user_access() calls with ->hasPermission() in rdf module.

8.0.x
webchick 2013-10-08 21:02:44 -07:00
parent feaee01eaf
commit a339661b0f
1 changed files with 1 additions and 1 deletions
core/modules/rdf

View File

@ -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(