REGEXP in ACL match settings - match two words on multi select

Moderator: crythias

Post Reply
cbruigom
Znuny newbie
Posts: 36
Joined: 17 Apr 2014, 23:38
Znuny Version: 3.3.5
Real Name: Clinton

REGEXP in ACL match settings - match two words on multi select

Post by cbruigom »

Hi There,

I am try to match two conditions (two string values, lets say "cat and "daog") and only when both are selected through a multi select dynamic field should I see a value of lets say "animals" in a second list.

I can get it to match with just one but it seems to match when both exist is a bit challenging and I am not sure if the ACL capabalilty can do REGEXP lookarounds for example.

This is what I currently have against the regexp dynamic field value in ACL:

^(?=\bcat\b)(?=\bdog\b).*$

Is this possible or am I barking up the wrong tree? If so any other ideas how I can only match when both conditions are present?

Regards,
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: REGEXP in ACL match settings - match two words on multi select

Post by root »

I did not checked it but I suggest you will need to code a custom ACL module, Kernel::System::Ticket::Acl::CloseParentAfterClosedChilds is an example
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply