diff --git a/core/modules/tracker/tracker.module b/core/modules/tracker/tracker.module
index 26af484..035222c 100644
--- a/core/modules/tracker/tracker.module
+++ b/core/modules/tracker/tracker.module
@@ -171,7 +171,7 @@ function tracker_cron() {
  */
 function _tracker_myrecent_access($account) {
   // This path is only allowed for authenticated users looking at their own content.
-  return $account->id() && ($GLOBALS['user']->id() == $account->id()) && user_access('access content');
+  return $account->id() && ($GLOBALS['user']->id() == $account->id()) && $account->hasPermission('access content');
 }
 
 /**
@@ -187,7 +187,7 @@ function _tracker_myrecent_access($account) {
  * @see tracker_menu()
  */
 function _tracker_user_access($account) {
-  return $account->access('view') && user_access('access content');
+  return $account->access('view') && $account->hasPermission('access content');
 }
 
 /**
