Commit bee10263 authored by webchick's avatar webchick

Issue #2062033 by InternetDevels: Replace user_access() calls with...

Issue #2062033 by InternetDevels: Replace user_access() calls with ->hasPermission() in tracker module.
parent 9def98f6
......@@ -172,7 +172,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');
}
/**
......@@ -188,7 +188,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');
}
/**
......
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