Probably bug in ACL Queue

English! place to talk about development, programming and coding
Post Reply
zalesak
Znuny newbie
Posts: 2
Joined: 10 Apr 2013, 17:44
Znuny Version: 3.2.1.

Probably bug in ACL Queue

Post by zalesak »

Hi, I am not sure if it is bug or I am using something wrong, maybe you can clear it.
When you have ACL rule for queue there is a problem move ticket between queues.

Example:
Queue: A, B, C
ACL:
Properties => {
Ticket => {
Queue => ['A'],
},
},
Possible => {
Ticket => {
Queue => ['B', 'C'],
},

When ticket is in A you can move it into B or C, but when ticket is in B or C you CANNOT move it into A (in AgentViewMove there is A listed, but after move error appeared). When you take A in Possible, you can move it into A.

Probably there is error on Ticket.pm
sub moveList return list of possible queues. This list is not build from Ticket{QueueID} but from param{QueueID} and in this case is id of A queue (and there is not A itself in Possible).

OTRS (3.2.3), PHP (5.3.23)
Last edited by zalesak on 10 Apr 2013, 21:05, edited 1 time in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Probably bug in ACL Queue

Post by jojo »

Try

Code: Select all

PropertiesDatabase => {
instead of

Code: Select all

Properties => {
"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
zalesak
Znuny newbie
Posts: 2
Joined: 10 Apr 2013, 17:44
Znuny Version: 3.2.1.

Re: Probably bug in ACL Queue

Post by zalesak »

Great! Thank you, it helps. What`s the difference between Properties and PropertiesDatabase?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Probably bug in ACL Queue

Post by jojo »

Properties always matches on the actual value on the screen. (so it might go into a deadlock)

PropertiesDatabase just matches against the actual value in the database (which will be updated on setup)
"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
Post Reply