diff --git a/core/modules/tour/tour.module b/core/modules/tour/tour.module index affdc49..06a8554 100644 --- a/core/modules/tour/tour.module +++ b/core/modules/tour/tour.module @@ -73,7 +73,7 @@ function tour_library_info() { * Implements hook_toolbar(). */ function tour_toolbar() { - if (!user_access('access tour')) { + if (!Drupal::currentUser()->hasPermission('access tour')) { return; } @@ -107,7 +107,7 @@ function tour_toolbar() { * Implements hook_preprocess_HOOK() for page.tpl.php. */ function tour_preprocess_page(&$variables) { - if (!user_access('access tour')) { + if (!Drupal::currentUser()->hasPermission('access tour')) { return; }