How to hide some elements from left menu

Hello,
To do %subj. I’ve edited Elements/Tabs. Then I did apache stop and
apache start (I’m using mod_perl). But after logon I still can see all
elements. Please what I have to do to have changes in Tabs file
applayed? Here is my Tabs file:
#Customized section of basetabs
my $basetabs = { A => { title => loc(‘Homepage’),
path => ‘’,
},
B => { title => loc(‘Tickets’),
path => ‘Search/Listing.html’
},

E => { title => loc(‘Configuration’),

path => ‘Admin/’

},

K => { title => loc(‘Preferences’),

path => ‘User/Prefs.html’

},

P => { title => loc(‘Approval’),

path => ‘Approvals/’

},

Z => { title => ‘Statistics’,

path => ‘Statistics/index.html’

},

             };

So I want to have just Homepage and Tickets to be visible for normal
user, later I’m planning to add some ifs for other elements depended on
users rights. Thanks for any help.
David

To do %subj. I’ve edited Elements/Tabs. Then I did apache stop and
apache start (I’m using mod_perl). But after logon I still can see all
elements. Please what I have to do to have changes in Tabs file
applayed?

You might take a look at my little mod as it’s fairly simple to
follow, and it is a few steps in the right direction for you.

http://www.circlestorm.org/rt/

You should only need the tabs mod from that, unless you also want
to see your stalled tickets. (The tabs mod is really just a minor
part i find usful).

-HK

Well, now I know that I have to manually delete files from mason_data
cache before restarting apache. Then after restart I can see changes
applayed. But please tell my anybody why I can still see elements like
approval, admin…etc, while my Tabs file doesn’t have any line with
these elements. Mason cache was cleaned, apache was restarted, where
else the RT is taking the tabs from? Here is my full Tabs file:
<& /Elements/PageLayout,
current_toptab => $current_toptab,
current_tab => $current_tab,
toptabs => $toptabs,
topactions => $topactions,
tabs => $tabs,
actions => $actions,
subactions => $subactions,
title => $Title
&>

<%INIT>
my $action;
my $basetopactions = {
A => { html => $m->scomp(’/Elements/CreateTicket’)
},
B => { html => $m->scomp(’/Elements/SimpleSearch’)
}
};

#Customized section of basetabs
my $basetabs = { A => { title => loc(‘Homepage’),
path => ‘’,
},
B => { title => loc(‘Tickets’),
path => ‘Search/Listing.html’
},
};

if (!defined $toptabs) {
$toptabs = $basetabs;
}
if (!defined $topactions) {
$topactions = $basetopactions;
}

Now let callbacks add their extra tabs

$m->comp(’/Elements/Callback’,
topactions => $topactions,
toptabs => $toptabs, %ARGS);

</%INIT>
<%ARGS>
$current_toptab => undef
$current_tab => undef
$toptabs => undef
$topactions => undef
$tabs => undef
$actions => undef
$subactions => undef
$Title => undef
</%ARGS>