From d42bde7981ec594818fa69b5ff6b920698380cfc Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 20 Apr 2009 00:20:29 +0000 Subject: [PATCH] fix botched backport from 1.9 --- httemplate/elements/header.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index ba45617ac..3843a0fd2 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -165,7 +165,7 @@ input.fsblackbuttonselected { -% if ( $FS::CurrentUser::CurrentUser->access_right('List customers') ) { +% if ( $curuser->access_right('List customers') ) {

Advanced @@ -186,11 +186,11 @@ input.fsblackbuttonselected { -% if ( $FS::CurrentUser::CurrentUser->access_right('View invoices') ) { +% if ( $curuser->access_right('View invoices') ) { -% if ( $FS::CurrentUser::CurrentUser->access_right('List invoices') ) { +% if ( $curuser->access_right('List invoices') ) { Advanced % } @@ -268,8 +268,11 @@ input.fsblackbuttonselected { my($title, $menubar) = ( shift, shift ); my $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc. my $head = @_ ? shift : ''; #$head is for things that go in the section + my $conf = new FS::Conf; +my $curuser = $FS::CurrentUser::CurrentUser; + my $menu_position = $FS::CurrentUser::CurrentUser->option('menu_position') || 'left'; -- 2.11.0