IP list is only for admins

git-svn-id: file:///home/shish/svn/shimmie2/trunk@357 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-07-23 13:48:52 +00:00
parent 069d96d282
commit 6e02af258d

View File

@ -74,7 +74,9 @@ class UserPage extends Extension {
if(is_a($event, 'UserPageBuildingEvent')) {
global $user;
$this->theme->display_user_page($event->page, $event->user, $user);
$this->theme->display_ip_list($event->page, $this->count_upload_ips($event->user), $this->count_comment_ips($event->user));
if($user->is_admin() || $user->id == $event->user->id) {
$this->theme->display_ip_list($event->page, $this->count_upload_ips($event->user), $this->count_comment_ips($event->user));
}
}
// user info is shown on all pages