Portal adds ID to session for use in Logging. See #32
Portal adds ID to session for use in Logging. See #32

--- a/lib/auth.class.php
+++ b/lib/auth.class.php
@@ -397,6 +397,7 @@
     }else{
     $groups = array("-99");
     BTMain::setUserDetails('PortalLogin','1');
+    BTMain::setUserDetails('PortalID',$user->User);
   }
 
 

--- a/modules/menu/menu.php
+++ b/modules/menu/menu.php
@@ -19,7 +19,7 @@
 <li id="menuDivi1" class="divider-vertical"></li>
 
 <?php
-if (BTMain::getUser()->name):
+if (BTMain::getUser()->name && (!in_array("-99",BTMain::getUser()->groups))):
 
 $this->loadModule('search-table');
 ?>
@@ -60,7 +60,8 @@
 <div class="pull-right" style="position: relative">
  
 
-<?php if (BTMain::getUser()->name):?>
+<?php if (BTMain::getUser()->name && (!in_array("-99",BTMain::getUser()->groups))): ?>
+
   <!-- Search Box -->
   <?php $this->loadModule('search'); ?>
   <!-- Search Box ends -->