ACL Match multiple properties in the same rule

Moderator: crythias

Post Reply
ser
Znuny newbie
Posts: 2
Joined: 04 Aug 2012, 01:23
Znuny Version: 3.1.6
Real Name: Ser Armenta
Company: Hildebrando Tijuana

ACL Match multiple properties in the same rule

Post by ser »

Hi,

is ther a way to match multiple properties in the same ACL rule? at the moment only works one of them.

Code: Select all

#Match todos habilita prioridad high y critical para ciertos usuarios
	$Self->{TicketAcl}->{'201-ACL-Priorities'} = {
		# match properties (current values from the form)
		[b]Properties => {[/b]
			
            
			[b]CustomerUser => {[/b]
				 Group_rw => [ 'IT Priorities' ],
			},
			
			[b]User => {[/b]
				 Group_rw => [ 'IT Priorities' ],
			 },

		},
		
		# return possible options (white list)
		Possible => {
			# possible ticket options (white list)
			Ticket => {
				Priority => ['1 low','2 normal (1 user affected)','3 high (department affected)','4 Critical (company-wide problem)'],

			},
			
		},
		# remove options (black list)
		PossibleNot => {
			Ticket => {
				#Priority => ['1 very low','2 low','3 normal','4 high','5 very high'],
			},
	
		}
	};
FiL
Znuny newbie
Posts: 69
Joined: 13 Jul 2010, 18:02
Znuny Version: 2.4.7

Re: ACL Match multiple properties in the same rule

Post by FiL »

You mean like this?

Code: Select all

    

    # match properties
        Properties => {
            # current ticket match properties
            Ticket => {
                Queue => ['Raw'],
                Priority => ['5 very high'],
            }

http://doc.otrs.org/3.1/en/html/ch18s02.html

or like this?

Code: Select all

 User => {
 Group_rw => ['hotline',],
 UserLastname => ['Smith'],
 },
http://faq.otrs.org/otrs/public.pl?Acti ... ;ItemID=68
Dev
OTRS-Version: 3.1.7
System: Ubuntu Linux

Prod
OTRS-Version 3.0.9
System: Ubuntu Linux
ser
Znuny newbie
Posts: 2
Joined: 04 Aug 2012, 01:23
Znuny Version: 3.1.6
Real Name: Ser Armenta
Company: Hildebrando Tijuana

Re: ACL Match multiple properties in the same rule

Post by ser »

Fil,

In your example you are matching 2 properties of the same "category" but I need that customer and agents from the same group ("IT Priority") been afected by the same rule. In this case only agents and customers of "IT priority" may change to priorities "3 high" and "4 Critical".


I´m wonder if this is posible?

Thanks.
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: ACL Match multiple properties in the same rule

Post by crythias »

Why bother? Just create an agent ACL and then a Customer ACL (use different, descriptive Array Keys).
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
Post Reply