summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2013-09-04 20:55:55 (GMT)
committerwebchick2013-09-04 20:57:02 (GMT)
commitc9af6ddcf3e54c615ebc5cb294fbc01e250de598 (patch)
tree9eaca1c4fb84f56b5441ff69e548bf8d71429a3c
parentf6cc0f98487689bfaaf46171afcee26d8b94d535 (diff)
Issue #2062031 by InternetDevels, rhm50: Replace user_access() calls with ->hasPermission() in tour module.
-rw-r--r--core/modules/tour/tour.module4
1 files changed, 2 insertions, 2 deletions
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;
}