[rt-users] How to hide Configuration Tab ?
Marc Hedlund
marc at precipice.org
Thu Apr 11 18:38:50 EDT 2002
One way to do what you want would be to replace your if clause with this
one:
if ($session{'CurrentUser'}->HasSystemRight({ Right => 'SuperUser' })){
That will give everyone who has the "SuperUser" right a Configuration tab,
and no one else.
Marc Hedlund
e: marc at precipice dot org
On Thu, 11 Apr 2002, Greg Dickerson wrote:
> One other way is to add some logic to $RT/Elements/Tabs. I added this to our install,
>
> my $toptabs;
> if ($session{'CurrentUser'}->Name eq 'root'){
> $toptabs = {
> A => { title => 'Home',
> path => '',
> },
> B => { title => 'Search',
> path => 'Search/Listing.html'
> },
>
> D => { title => 'Configuration',
> path => 'Admin/'
> }
> };
> } else {
> $toptabs = {
> A => { title => 'Home',
> path => '',
> },
> B => { title => 'Search',
> path => 'Search/Listing.html'
> }
> };
> }
>
> This will hide the link from all users unless you are root. I'm not the best perl guru so if there are errors...let me know.
> I'd like to add a @admins array to this ie @admins = qw( root user_1 user_2 etc...) so that I can give superuser rights to a user
> and add there login to the list any ideas?
>
>
> Greg
> --------
> Greg Dickerson
> Support Manager
> O'Reilly & Associates, Inc.
> 1005 Gravenstein Highway North
> Sebastopol, CA 95472
> Phone:(707)827-7215
>
>
> ----- Original Message -----
> From: "alan evetts" <alan at silent5.com>
> To: <rt-users at lists.fsck.com>
> Cc: "timuel" <timwese at voicenet.com>
> Sent: Thursday, April 11, 2002 1:56 PM
> Subject: Re: [rt-users] How to hide Configuration Tab ?
>
>
> > Ah perfect. Just what I was looking for. I try to keep things simple for those just answering the queues :)
> >
> > Thanks a bunch,
> >
> > --
> > alan evetts
> >
> > On Thu, Apr 11, 2002 at 02:46:37PM -0400, timuel wrote:
> > > yea you can. comment out the link in $RT/Elements/Tabs and tell your "admin type people" to just go directly to
> http://wherever.yourdomain.com/Admin/ in order to make changes.
> > >
> > > I also didn`t like the idea of flaunting things that people didn`t have access to modify anyway...
> > >
> > > |> You may not want to, and I don't think you can. They need to be able to get
> > > |> in there to change their passwords.
> > >
> > > If you want to give them the ability to do so, can`t you simply give them the rights and let them use the "preferences" link in
> $RT/Elements/Header?
> > >
> > > --
> > > timuel
> > >
> > >
> > > ----- Original Message -----
> > > From: "Russ Johnson" <russj at dimstar.net>
> > > To: <rt-users at lists.fsck.com>
> > > Sent: Thursday, April 11, 2002 2:35 PM
> > > Subject: Re: [rt-users] How to hide Configuration Tab ?
> > >
> > >
> > > | You may not want to, and I don't think you can. They need to be able to get
> > > | in there to change their passwords.
> > > |
> > > | At 11:07 AM 4/11/2002 -0700, alan evetts wrote:
> > > | >Hello,
> > > | >
> > > | >I apoligize if this has been covered before, I tried to find the answer in
> > > | >the mailing list archives - but was unable.
> > > | >
> > > | >I was just wondering if there was a way through permissions / acls / etc
> > > | >to stop regular users from seeing the "Configuration" link at the top of
> > > | >the home page / search page, or if you have to manually hide that? I'm
> > > | >pretty confident I haven't done anything to strange to my RT installation
> > > | >yet, as it's pretty fresh - but haven't been able to find a method to hide it.
> > > | >
> > > | >Any help is greatly appreciated.
> > > | >
> > > | >
> > > | >Running Version: 2.0.13, in case thats relevant.
> > > | >
> > > | >--
> > > | >alan evetts
> > > | >
> > > | >_______________________________________________
> > > | >rt-users mailing list
> > > | >rt-users at lists.fsck.com
> > > | >http://lists.fsck.com/mailman/listinfo/rt-users
> > > |
> > > | Russ Johnson
> > > | http://www.dimstar.net
> > > |
> > > |
> > > | Nostalgia isn't what it used to be
> > > |
> > > |
> > > |
> > > | _______________________________________________
> > > | rt-users mailing list
> > > | rt-users at lists.fsck.com
> > > | http://lists.fsck.com/mailman/listinfo/rt-users
> > > |
> > > |
> > >
> > >
> > > _______________________________________________
> > > rt-users mailing list
> > > rt-users at lists.fsck.com
> > > http://lists.fsck.com/mailman/listinfo/rt-users
> >
> >
> > _______________________________________________
> > rt-users mailing list
> > rt-users at lists.fsck.com
> > http://lists.fsck.com/mailman/listinfo/rt-users
> >
>
>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>
More information about the rt-users
mailing list