
Hi All examples [1] of TicketACL use constant Properties and Possible's. I'd like to calculate possible SLA's dynamically using CustomerUserID and ServiceID like in module $OTRS/Kernel/System/Ticket/ Acl/CloseParentAfterClosedChilds.pm I didn't find any manual on doc.otrs.org on how to develop and use such modules. Please, point me a right way. [1] http://doc.otrs.org/2.4/en/html/c2172.html -- regards, Mikhail

Well, I copied CloseParentAfterClosedChilds.pm to TestACL.pm in the same directory. I added to Config.pm this code: $Self->{'Ticket::Acl::Module'}->{'2-Ticket::Acl::Module'} = {
'Module' => 'Kernel::System::Ticket::Acl::TestACL', };
I modified Run subroutine of this new module in following way: $Param{Acl}->{TestACL} = {
# match properties
Properties => { },
# return possible options (black list)
PossibleNot => { # possible ticket options (black list)
Ticket => { Priority => ["1 very low"], }, } }
return 1;
Now very low priority should be disabled for all tickets. Am I right? However, it isn't. Also, I added this code to new and Run subroutines of the new module: open(MYFILE, '>>/var/tmp/acltest.log');
print MYFILE "I AM IN MODULE\n"; close(MYFILE);
However, no data in /var/tmp/acltest.log is added. So, module is just not being loaded. I'm sorry for my being so unskilled in Perl (most of development comes in Python for me). What am I doing wrong here? -- regards, Mikhail
participants (1)
-
Михаил Лукин