From 433efb25d93e8247706716eb9ba4d7864d43b71c Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Mon, 10 Nov 2008 01:33:21 +0100
Subject: [PATCH] always show IP addresses to managers

darcs-hash:20081110003321-7ad00-79f0d66e0a7094911067555e055d63f8dfbfd46d.gz
---
 inc/html.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/inc/html.php b/inc/html.php
index b942fc145..8390a7b09 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -525,6 +525,9 @@ function html_revisions($first=0){
     $form->addElement(form_makeOpenTag('span', array('class' => 'user')));
     if($info['user']){
       $form->addElement(editorinfo($info['user']));
+      if(auth_ismanager()){
+        $form->addElement(' ('.$info['ip'].')');
+      }
     }else{
       $form->addElement($info['ip']);
     }
@@ -634,6 +637,9 @@ function html_recent($first=0){
     $form->addElement(form_makeOpenTag('span', array('class' => 'user')));
     if($recent['user']){
       $form->addElement(editorinfo($recent['user']));
+      if(auth_ismanager()){
+        $form->addElement(' ('.$recent['ip'].')');
+      }
     }else{
       $form->addElement($recent['ip']);
     }
-- 
GitLab