Ensure that $allowed is set.

This commit is contained in:
Scott Ullrich 2008-02-18 17:29:36 +00:00
parent 9c98515ddd
commit f10e8e4828

View File

@ -2246,6 +2246,8 @@ function display_top_tabs(& $tab_array) {
global $config;
global $g;
$allowed = $g['privs'];
if(!$allowed)
$allowed = $_SESSION['privs'];
/* does the user have access to this tab?
* master user has access to everything.