Customer web, configure the queues using ACL

Moderator: crythias

Locked
Nicsoft
Znuny newbie
Posts: 53
Joined: 12 Aug 2010, 14:58
Znuny Version: 2.4
Location: Stockholm
Contact:

Customer web, configure the queues using ACL

Post by Nicsoft »

Hello!

I am trying to configure the customer web so the correct queues are presented for the rigth customer and group when creating a new ticket. I don't manage to get following to work:

1. Sub queues are still visible even though I have defined them not to be.
2. I can't remove the '-' from the list of queues (to-field).

Here's my ACL:

Code: Select all

  Properties => {
                Frontend => {Action => ['CustomerTicketMessage'] },
                User => { Group_rw => [ 'MyGroup'],},
        },
        PossibleNot => { Ticket => { Queue => [
           '[RegExp]::',                         # this hides all sub-queues
           '[RegExp]^AnotherGroup',    #this hides just one queue#
           '[RegExp]^-',] }  
        }
    };

$Self->{TicketAcl}->{'ACL-Customer-Queues'} = {
        Properties => {
                Frontend => {Action => ['CustomerTicketMessage'] },
                User => { Group_rw => [ 'AnotherGroup'],},
        },
        PossibleNot => { Ticket => { Queue => [
           '[RegExp]^MyGroup',    #this hides just one queue#
           '[RegExp]::',               # this hides all sub-queues
           '[RegExp]^-',] } 
        }
    };
How do I fix this? If not possible, I would be happy to know that as well.

Thank you in advance!
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customer web, configure the queues using ACL

Post by crythias »

The - is so people are forced to choose a queue. Otherwise, they'll just submit on the first queue.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Nicsoft
Znuny newbie
Posts: 53
Joined: 12 Aug 2010, 14:58
Znuny Version: 2.4
Location: Stockholm
Contact:

Re: Customer web, configure the queues using ACL

Post by Nicsoft »

Thank you for you answer!

My intention is that there should be only one queue for each group/user. Hence, the first queue is the only choice. Is there a work-around?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customer web, configure the queues using ACL

Post by crythias »

I'm sure I've posted a workaround somewhere on this forum... maybe even in the HowTos... http://forums.otrs.org/viewtopic.php?f=60&t=7138
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Nicsoft
Znuny newbie
Posts: 53
Joined: 12 Aug 2010, 14:58
Znuny Version: 2.4
Location: Stockholm
Contact:

Re: Customer web, configure the queues using ACL

Post by Nicsoft »

Thank you!

This I have already done. What I would like to do is to remove the dash (-) from the list making it a bit cleaner.

This will help med with some customers: http://forums.otrs.org/viewtopic.php?f=62&t=4830#p25069 (Thank you, very useful post)

But still for others I may need to provide a list of Queues.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customer web, configure the queues using ACL

Post by crythias »

You may have to edit the code to change PossibleNone=>0 or something somewhere. I forget where...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
gambit23
Znuny newbie
Posts: 3
Joined: 12 May 2011, 18:09
Znuny Version: 3.0.6

Re: Customer web, configure the queues using ACL

Post by gambit23 »

Dear frinds,

Thanks for your diary support in OTRS !!!

I have a question refered to ACLs in OTRS 3.0...

I need to make a ACLs by Roles... it is possible ?? for example:

$Self->{TicketAcl}->{'ACL-Name-7'} = {
# match properties
Properties => {
# current ticket match properties
CustomerUser => {
Group_rw => [ 'customers', ],
},
},

# return possible options (white list)
PossibleNot => {
# possible ticket options
Ticket => {
State => ['new',],
Queue => ['Misc'],
},
},
};

This ACL is based in a Group called "customers" using the param "Groups_rw"... is possible to use a param for Roles ????
for example:

CustomerUser => {
Role => [ 'Sales Operators', ],
},



Thanks a lot for yor help !!


Fernando
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Customer web, configure the queues using ACL

Post by jojo »

There are no ACLs for roles. Also customers are not assigned to roles.
"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