Commit c9af6ddc authored by webchick's avatar webchick

Issue #2062031 by InternetDevels, rhm50: Replace user_access() calls with...

Issue #2062031 by InternetDevels, rhm50: Replace user_access() calls with ->hasPermission() in tour module.
parent f6cc0f98
......@@ -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;
}
......
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