Disable CompanyTickets in customer.pl

Hi, I'm trying to figure out if it's possible (and how) to disable the 'CompanyTickets' view in the customer.pl via code. I know I can disable it via the sysconfig setting, but I'd like to create two versions of the customer.pl. One which shows CompanyTickets and one that doesn't. Any hint is appreciated. Thanks, Arnold.

Hi Arnold,
By far the easiest way would be to restrict the module to a group, for
instance customeruser_company_tickets, in the SysConfig. Now you can
just add this group to the customer users who'd need access to this feature.
Kind regards,
--
Michiel Beijen
R&D
OTRS AG
Norsk-Data-Str 1.
61352 Bad Homburg
Deutschland
T: +31 (0) 6457 42418
F: +49 (0) 9421 56818-18
I: http://www.otrs.com/
Business Location: Bad Homburg, Country Court: Bad Homburg, Commercial
register: 10751, Tax ID: 003 240
97505 Chairman of the Board: Burchard Steinbild, Managing Board: André
Mindermann (CEO), Martin Edenhofer
CU@ IIR Service Desk Forum in Mainz (Germany) and get to know more about
OTRS at booth no. 12 from Nov 24-25, 2009!
On Sun, Nov 1, 2009 at 5:13 PM, Arnold Ligtvoet
Hi,
I'm trying to figure out if it's possible (and how) to disable the 'CompanyTickets' view in the customer.pl via code. I know I can disable it via the sysconfig setting, but I'd like to create two versions of the customer.pl. One which shows CompanyTickets and one that doesn't.
Any hint is appreciated.
Thanks, Arnold. --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/

Hi Michiel,
On Sun, 1 Nov 2009 20:43:40 +0100, Michiel Beijen
Hi Arnold,
By far the easiest way would be to restrict the module to a group, for instance customeruser_company_tickets, in the SysConfig. Now you can just add this group to the customer users who'd need access to this feature.
Kind regards,
thanks and I agree. The problem seems to be that: a) I do not understand the method of setting this b) it does not work I've created a group called show_company_tickets under 'admin->groups'. Did not yet add any users to this group and then went to 'sysconfig-> Ticket -> Frontend::Customer::ModuleRegistration'. Under the group option of 'CompanyTickets' I clicked on new group and in the text box I added 'show_company_tickets'. I entered nothing under group_ro. Then I clicked on update. I would expect that if a user now logs onto the customer frontend that the CompanyTickets button is not visible, as there are no users in the group. The problem is that the button is still visible and the function also still works. When I click it, it shows the company tickets. Any help is much appriciated. Arnold.

Hi Arnold,
I've tried to configure it on a test system, and I guess I must confirm that
it does not work as I described.
For that I've raised a bug: http://bugs.otrs.org/show_bug.cgi?id=4476
In the mean time, you could implement the same behaviour by using a
permission module, and patching the customer frontend module that should be
retricted to some groups. But it would require at least Perl skills, a
little OTRS insight and some time...
-
Michiel Beijen
R&D
OTRS AG
Norsk-Data-Str 1.
61352 Bad Homburg
Deutschland
T: +31 (0) 6457 42418
F: +49 (0) 9421 56818-18
I: http://www.otrs.com/
Business Location: Bad Homburg, Country Court: Bad Homburg, Commercial
register: 10751, Tax ID: 003 240
97505 Chairman of the Board: Burchard Steinbild, Managing Board: André
Mindermann (CEO), Martin Edenhofer
CU@ IIR Service Desk Forum in Mainz (Germany) and get to know more about
OTRS at booth no. 12 from Nov 24-25, 2009!
On Mon, Nov 2, 2009 at 9:15 AM,
Hi Michiel,
On Sun, 1 Nov 2009 20:43:40 +0100, Michiel Beijen
wrote: Hi Arnold,
By far the easiest way would be to restrict the module to a group, for instance customeruser_company_tickets, in the SysConfig. Now you can just add this group to the customer users who'd need access to this feature.
Kind regards,
thanks and I agree. The problem seems to be that: a) I do not understand the method of setting this b) it does not work
I've created a group called show_company_tickets under 'admin->groups'. Did not yet add any users to this group and then went to 'sysconfig-> Ticket -> Frontend::Customer::ModuleRegistration'. Under the group option of 'CompanyTickets' I clicked on new group and in the text box I added 'show_company_tickets'. I entered nothing under group_ro. Then I clicked on update. I would expect that if a user now logs onto the customer frontend that the CompanyTickets button is not visible, as there are no users in the group.
The problem is that the button is still visible and the function also still works. When I click it, it shows the company tickets.
Any help is much appriciated.
Arnold.
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/

Hi,
On Mon, 2 Nov 2009 11:42:21 +0100, Michiel Beijen
In the mean time, you could implement the same behaviour by using a permission module, and patching the customer frontend module that should be retricted to some groups. But it would require at least Perl skills, a little OTRS insight and some time...
thanks for raising that bug. There is another one with the groups module and customer users. If I create a group and then goto 'customer users <-> groups', click on a user and assign Ro/Rw permissions for a group, the changes are not saved. If I click on the group to add users to a group the changes are saved. Can you give me a small pointer on using a permission module? Where to start? I do have some OTRS insight, a little perl skills and a little time.... :-) What I'm trying to achieve is adding dealer/reseller support into OTRS. My customer has dealers, who in turn have end users (companies with multiple end-users). I want to allow the dealer to see all tickets created by his users and to be able to create a new ticket for a user. Users should only see their tickets (their own tickets and the company tickets). Thanks, Arnold.
participants (3)
-
Arnold Ligtvoet
-
arnold@ligtvoet.org
-
Michiel Beijen