ACL to filter types by queue

Moderator: crythias

Locked
alexandrnevski
Znuny newbie
Posts: 5
Joined: 13 Aug 2013, 14:13
Znuny Version: 3.0.5

ACL to filter types by queue

Post by alexandrnevski »

Hi All,
I am trying to create an ACL to show only the corresponding types based on queue:
# ticket acl
$Self->{TicketAcl}->{'ACL-Name-1'} = {
Properties => {
Queue => {
Name => ['[RegExp]Accounting'],
},
},
Possible => {
Ticket => {
Type => ['Invoice','Loan'],
},
},
};

What is wrong here?
OTRS 3.0.5.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ACL to filter types by queue

Post by jojo »

please

- show Queue name
- show Type names
- explain the expected behaviour
- explain the actual behaviour
- check if you are using a real user, not root@localhost
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
alexandrnevski
Znuny newbie
Posts: 5
Joined: 13 Aug 2013, 14:13
Znuny Version: 3.0.5

Re: ACL to filter types by queue

Post by alexandrnevski »

Thank you for the rapid reply.
The original ACL (as it's written in Config.pm) is:

# ticket acl
$Self->{TicketAcl}->{'ACL-Name-1'} = {
Properties => {
Queue => {
Name => ['[RegExp]Buchhaltung'],
},
},
Possible => {
Ticket => {
Type => ['Stornorechnungen','Gutschriften','Änderung Kundenstammdaten','Änderung Vertragsdaten', 'Anfragen anderer Abteilungen'],
},
},
};

The list of types:
Anfragen anderer Abteilungen gültig 13.08.2013 12:16 13.08.2013 11:42
Auftrag gültig 01.08.2012 14:23 01.08.2012 14:23
CRM Daten Änderung gültig 13.12.2012 16:43 13.12.2012 16:43
CRM Feature Request gültig 14.12.2012 12:39 14.12.2012 12:39
CRM GUI Kleinigkeit gültig 14.12.2012 11:19 14.12.2012 11:19
CRM Kein Ticket gültig 19.12.2012 09:23 19.12.2012 09:23
CRM New Version muss gelöst werden gültig 13.12.2012 16:52 13.12.2012 16:52
CRM Schulung gültig 19.12.2012 09:21 19.12.2012 09:21
CRM Sync OL - SLX gültig 13.12.2012 16:45 13.12.2012 16:43
CRM Sync SLX - SLX gültig 13.12.2012 16:45 13.12.2012 16:43
Gutschriften gültig 13.08.2013 11:41 13.08.2013 11:41
Hardwareprobleme ungültig 20.07.2010 22:17 18.01.2010 12:12
Ideen / Erweiterungen gültig 01.08.2012 14:22 18.01.2010 12:12
Incident gültig 05.06.2012 19:35 13.03.2010 15:48
Incident::Disaster gültig 13.08.2013 12:17 13.03.2010 15:48
Incident::ServiceRequest gültig 05.06.2012 19:35 13.03.2010 15:48
Problem gültig 05.06.2012 19:35 13.03.2010 15:48
Problem::KnownError gültig 05.06.2012 19:35 13.03.2010 15:48
Problem::PendingRfC gültig 05.06.2012 19:35 13.03.2010 15:48
RfC gültig 19.07.2010 19:41 19.07.2010 19:41
Softwareprobleme ungültig 20.07.2010 22:18 18.01.2010 12:12
Sonstiges ungültig 20.07.2010 22:18 18.01.2010 12:12
Stornorechnungen gültig 13.08.2013 11:41 13.08.2013 11:41
Störungen ungültig 20.07.2010 22:17 18.01.2010 12:12
default ungültig 18.01.2010 12:19 17.11.2009 22:01
Änderung Kundenstammdaten gültig 13.08.2013 11:41 13.08.2013 11:41
Änderung Vertragsdaten gültig 13.08.2013 11:42 13.08.2013 11:42

The list of queues (which start with Buchhaltung):
Buchhaltung buchhaltung gültig 02.01.2012 19:40 02.01.2012 18:17
Buchhaltung::Verträge buchhaltung gültig 04.01.2012 17:38 02.01.2012 18:19

I expect, if I open a ticket from the Buchhaltung or Buchhaltung::Verträge queue and go to Ticketsdata - and open there a type combobox - to see only these types: ['Stornorechnungen','Gutschriften','Änderung Kundenstammdaten','Änderung Vertragsdaten', 'Anfragen anderer Abteilungen']. But I see all the types, which are defined.

Yes, I am using a regular user.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ACL to filter types by queue

Post by jojo »

Did you try:

Code: Select all

 ['[RegExp](Buchhaltung)'],
Pleas ealso consider upgrading, your patchlevel is very old, and also there are 2 more minor releases available. Actual version is 3.2.9 and 3.3. is on the horizon
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
alexandrnevski
Znuny newbie
Posts: 5
Joined: 13 Aug 2013, 14:13
Znuny Version: 3.0.5

Re: ACL to filter types by queue

Post by alexandrnevski »

I have tried with ['[RegExp](Buchhaltung)'], - did not work also.
Moreover I have tried with empty (it must match all tickets):
Properties => {

},
And this doesn't work also..
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ACL to filter types by queue

Post by jojo »

did you just try with one Type? Did you try with TypeID?

Please upgrade your OTRS as it might be affacted by a bug. Latest 3.0. version is 3.0.22
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
alexandrnevski
Znuny newbie
Posts: 5
Joined: 13 Aug 2013, 14:13
Znuny Version: 3.0.5

Re: ACL to filter types by queue

Post by alexandrnevski »

Yes, I have tried with just one type, but it did not help.
It seems to me, that Property doesn't work (empty for example)
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ACL to filter types by queue

Post by jojo »

as I said, Upgrade!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
alexandrnevski
Znuny newbie
Posts: 5
Joined: 13 Aug 2013, 14:13
Znuny Version: 3.0.5

Re: ACL to filter types by queue

Post by alexandrnevski »

And maybe some other options but the upgrade? It's a very old installation and better not to touch it, if it is working.

May it be connected with installed KIX4OTRS?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ACL to filter types by queue

Post by jojo »

I can not tell you. Please update to at least 3.0.22 to get all 3.0. related bugfixes.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked