Email address no longer used in Audit log when accessing Portal. See #32
Email address no longer used in Audit log when accessing Portal. See #32

--- a/lib/db/loggingdb.class.php
+++ b/lib/db/loggingdb.class.php
@@ -41,7 +41,12 @@
 
 $loggingenabled = BTMain::getConf()->loggingenabled;
 
-$user = BTMain::getUser()->name;
+// Added to allow logging of Portal actions without revealing email addresses
+if (BTMain::getUser()->PortalID){
+  $user = BTMain::getUser()->PortalID;
+}else{
+  $user = BTMain::getUser()->name;
+}
 
 $useres = $this->stringEscape($user);
 $credes = $this->stringEscape($cred);