diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-17 18:56:25 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-17 18:56:25 +0000 |
commit | 4b84de9a0c5bc8a9a3cb781b423d9ce834ea089b (patch) | |
tree | cd5b7cc5df2f5c7e73bd9428514b789589051e5c /modules/tracker | |
parent | 5db4a65da38b7c391bdbd35a841ca9f5272f57ea (diff) | |
download | brdo-4b84de9a0c5bc8a9a3cb781b423d9ce834ea089b.tar.gz brdo-4b84de9a0c5bc8a9a3cb781b423d9ce834ea089b.tar.bz2 |
#14591, User.module links for blocked/non-existant accounts + menu 403/404 issue, patch by Steven and merlinofchaos
Diffstat (limited to 'modules/tracker')
-rw-r--r-- | modules/tracker/tracker.module | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index 4f8e602f7..f82611ceb 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -65,8 +65,16 @@ function tracker_menu($may_cache) { */ function tracker_track_user() { if ($account = user_load(array('uid' => arg(1)))) { - drupal_set_title($account->name); - return tracker_page($account->uid); + if ($account->status || user_access('administer users')) { + drupal_set_title($account->name); + return tracker_page($account->uid); + } + else { + drupal_access_denied(); + } + } + else { + drupal_not_found(); } } |