Remove Company Tickets from Menu

Moderator: crythias

Post Reply
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Remove Company Tickets from Menu

Post by tnieman »

I need to remove "Company Tickets" button from customer.pl for internal employees. I have set up 2 different themes for Employees vs. Clients.

I found the CustomerNavigationBar.dtl and copied it into the theme folders to change the Logout button. I see that there is code in there for the 4 buttons on the left.

Code: Select all

<li class="$QData{"Class"}" title="$Text{"$Data{"Description"}"}"><a href="$Env{"Baselink"}$Data{"Link"}" accesskey="$QData{"AccessKey"}" title="$Text{"$Data{"Name"}"} ($QData{"AccessKey"})">$Text{"$Data{"Name"}"}</a></li>
the 4 buttons come from one line of code. How do I get rid of the Company Tickets for just the Employee theme?


Thanks for any help you can shed on this topic.

Tom
tto
Znuny wizard
Posts: 315
Joined: 09 Jan 2007, 15:24
Znuny Version: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: Remove Company Tickets from Menu

Post by tto »

Hi there,
tnieman wrote:I need to remove "Company Tickets" button from customer.pl for internal employees. I have set up 2 different themes for Employees vs. Clients.
[...]the 4 buttons come from one line of code. How do I get rid of the Company Tickets for just the Employee theme?
There's no need to modify any source files or to set up a new theme/skin. You can do this by configuration only:
  • enable customer group support (SysConfig "CustomerGroupSupport")
  • assign every queue related group to SysConfig "CustomerGroupAlwaysGroups"
  • add a new group "G_customer_companytickets"
  • add "Group_ro" => "G_customer_companytickets" to SysConfig key CustomerFrontend::Module###CustomerTicketOverview
  • assign group "G_customer_companytickets" to those customer users which should be able to use "Company Tickets"
  • force customer users to logout and login again in order to enable this configuration

regards, T.
--
KIX 17.x (fork of OTRS)
Professional KIX-, or OTRS-integration, development and consulting by c.a.p.e. IT - http://www.cape-it.de
For questions and hints regarding KIX(4OTRS) please go to https://forum.kixdesk.com/
Bei Fragen und Hinweisen zu KIX(4OTRS) bitte an https://forum.kixdesk.com/ wenden.
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: Remove Company Tickets from Menu

Post by tnieman »

This will remove the Company Tickets tab for everyone but those in the Group, right? We don't want our employees seeing the Company Tickets
tto
Znuny wizard
Posts: 315
Joined: 09 Jan 2007, 15:24
Znuny Version: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: Remove Company Tickets from Menu

Post by tto »

tnieman wrote:This will remove the Company Tickets tab for everyone but those in the Group, right?
...exactly.
tnieman wrote:We don't want our employees seeing the Company Tickets
Then, just don't assign them to the group.

The problem about implementing it with a skin is, that the skin might be changed by thue customer user itself (if not disabled) or by some admin (by accident e.g.) - it's less secure.

reagrds, T.
--
KIX 17.x (fork of OTRS)
Professional KIX-, or OTRS-integration, development and consulting by c.a.p.e. IT - http://www.cape-it.de
For questions and hints regarding KIX(4OTRS) please go to https://forum.kixdesk.com/
Bei Fragen und Hinweisen zu KIX(4OTRS) bitte an https://forum.kixdesk.com/ wenden.
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: Remove Company Tickets from Menu

Post by tnieman »

that works great - now is there an automated way to get customers into that group?
tto
Znuny wizard
Posts: 315
Joined: 09 Jan 2007, 15:24
Znuny Version: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: Remove Company Tickets from Menu

Post by tto »

tnieman wrote:that works great - now is there an automated way to get customers into that group?
...unfortunately not (without development). There's not role concept or permission-/group assignment on login as know from the agent side.

regards, T.
--
KIX 17.x (fork of OTRS)
Professional KIX-, or OTRS-integration, development and consulting by c.a.p.e. IT - http://www.cape-it.de
For questions and hints regarding KIX(4OTRS) please go to https://forum.kixdesk.com/
Bei Fragen und Hinweisen zu KIX(4OTRS) bitte an https://forum.kixdesk.com/ wenden.
Post Reply