Help with ACL

English! place to talk about development, programming and coding
Post Reply
cris12345
Znuny advanced
Posts: 105
Joined: 24 Feb 2017, 16:45
Znuny Version: 5.0.16.01
Real Name: Cristina Corrales
Company: -

Help with ACL

Post by cris12345 »

Hello,
first time using ACL and I don't understand it very well.
I'm trying to filter a dropdown values after the selection in another dropdown before.

Both dropdowns are dynamic fields.

What I'm doing is:
First in the Match settings section selecting Properties >> DynamicField >> DynamicField_Name >> exact match >> value

Then my doubt appears in the Change settings section.
There are options like: possible, possibleadd, etc.
I select possible but in the next actions what each one means?
because If I continue with the logic before, inside possible >> tickets >> should be a DynamicField option, but no. So I wrote DynamicField and in exact match put the name of the dynamic field dropdown name. But then how can I specified the values for that next dropdown?

Thanks for your help!
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Help with ACL

Post by RStraub »

Hey there,

this is how it works:

PossibleNot --> Only these values CANNOT be selected (Blacklist)
Possible --> Only these values CAN be selected (Whitelist)
PossibleAdd --> Requires a previous ACL (they are executed alphabetically). Will then ADD more values that CAN be selected.

If you want to use an ACL on dynamic fields, make sure to use the key and not the value (that you defined in the dynamic-field-admin page).
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
cris12345
Znuny advanced
Posts: 105
Joined: 24 Feb 2017, 16:45
Znuny Version: 5.0.16.01
Real Name: Cristina Corrales
Company: -

Re: Help with ACL

Post by cris12345 »

Hi,

Thanks!
I used Possible but in the next action I have to specified the values for a dynamic field dropwdown and that is what I don't know how to do it.

What I did:
After select Possible dynamic field is not an option also inside ticket, so I selected ticket and wrote dynamicfield_name and then in exact match specified the values that I want to appears after the selection of MCO or FLD as in the image attached.


Thanks
You do not have the required permissions to view the files attached to this post.
wurzel
Znuny guru
Posts: 3217
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Help with ACL

Post by wurzel »

Hi,

I don't know, what you are doing excactly ;)

But the syntax - shown in doc.otrs.org is

Possible => {
Ticket => {
DynamicField_<name> => ['some value'],


And you may think about using PropertiesDatabase, if the Location is not shown in the frontend.

Florian
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
cris12345
Znuny advanced
Posts: 105
Joined: 24 Feb 2017, 16:45
Znuny Version: 5.0.16.01
Real Name: Cristina Corrales
Company: -

Re: Help with ACL

Post by cris12345 »

Thanks for your answer!

If I used the syntax :

Possible => {
Ticket => {
DynamicField_<name> => ['some value'],

In which file (path) should I include it?
Post Reply