ACL not working

Moderator: crythias

Post Reply
miramar
Znuny newbie
Posts: 33
Joined: 07 Oct 2012, 21:54
Znuny Version: 3.3.8
Real Name: Bernd Renzing

ACL not working

Post by miramar »

Hi,

I´m trying to implement the followinng ACL

Code: Select all

$Self->{TicketAcl}->{'ACL-Type-001'} = {
   Properties => {
                Frontend => {
                                Action => ['AgentTicketPhone','AgentTicketEmail'],
                },
   },
   Possible =>   {
                Ticket => {
                                Type => ['[RegExp]^(Problem|Incident)'] ,
                },
   },
};
Does anybody see my error? I´ve tried PossibleNot, TypeID, with Regexp and without

Regards, Bernd
OTRS 3.2.5 ITSM, FAQ, MyServices, RegexCheck4Cmdb and support contract available...
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: ACL not working

Post by crythias »

Why do you need a regex for a result?
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
miramar
Znuny newbie
Posts: 33
Joined: 07 Oct 2012, 21:54
Znuny Version: 3.3.8
Real Name: Bernd Renzing

Re: ACL not working

Post by miramar »

I think i don´t need it, that was my last try, before posting in forum.

I tried also

Code: Select all

Possible =>   {
                Ticket => {
                                Type => ['Problem','Incident)'] ,
                },
I used also the negative Version

Code: Select all

PossibleNot =>   {
                Ticket => {
                                Type => ['Incident::Nagios'] ,
                },
What is wrong? It´s OTRS Version 3.1.12 migrated from 3.0.8.
OTRS 3.2.5 ITSM, FAQ, MyServices, RegexCheck4Cmdb and support contract available...
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: ACL not working

Post by crythias »

In your workflow, would you have a case where there is a type not of the above? If not, why is the type set to valid in admin settings?
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
miramar
Znuny newbie
Posts: 33
Joined: 07 Oct 2012, 21:54
Znuny Version: 3.3.8
Real Name: Bernd Renzing

Re: ACL not working

Post by miramar »

The other types are only valid for email´s not for human use. (Esp. incident::nagios is the ticket type for automating report of nagios incidents...)
OTRS 3.2.5 ITSM, FAQ, MyServices, RegexCheck4Cmdb and support contract available...
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ACL not working

Post by jojo »

Try this (Don't use root@localhost for testing!):

Code: Select all

$Self->{TicketAcl}->{'ACL-Type-001'} = {
   Properties => {
   },
   PossibleNot =>   {
                Ticket => {
                                Type => ['Incident::Nagios'] ,
                },
   },
};
"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
miramar
Znuny newbie
Posts: 33
Joined: 07 Oct 2012, 21:54
Znuny Version: 3.3.8
Real Name: Bernd Renzing

Re: ACL not working

Post by miramar »

Yes, this works. Is it a bug?
OTRS 3.2.5 ITSM, FAQ, MyServices, RegexCheck4Cmdb and support contract available...
Post Reply