Question using Ticket Acl

Moderator: crythias

Locked
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

Question using Ticket Acl

Post by adminrd »

Hi all,

I try to use Ticket ACL for select "note-external" as only possible note type, if userLogin is me.

I did this in Kernel/Config.pm :

Code: Select all

$Self->{TicketAcl}->{'ACL-Name-2'} = {
        # match properties
        Properties => {
            # current ticket match propertiesi
            Frontend => {
                Action => ['AgentTicketNote'],
            },
            User => {
             UserLogin => ['my login'],
            },

        },
        # return possible options (white list)
        Possible => {
            Ticket => {
                $Self->{'Ticket::Frontend::AgentTicketNote'}->{'ArticleTypes'} =>  ['note-external'],
            },
        },
    };
But it doesn't work, and I'm not really sure of that syntax.

Thanks for your help,
Best Regards,
Last edited by crythias on 09 Jun 2015, 17:39, edited 1 time in total.
Reason: [code] tags for sanity.
root
Administrator
Posts: 4250
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Question using Ticket Acl

Post by root »

What the purpose to use an ACl for this? Do you like to restrict the note type only for you or for all agents?
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 ?
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

Re: Question using Ticket Acl

Post by adminrd »

Yes, I want to restrict only for one agent login in fact.

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

Re: Question using Ticket Acl

Post by root »

IMO, you can only use ticket attributes for ACLs, the note-type is an article attribute.
Maybe this issues may be solved with an PreApplicationModule, check Defaults.pm for 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 ?
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

Re: Question using Ticket Acl

Post by adminrd »

Thanks for the answer, I will try this way.

Regards,
Locked