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
---------------------------------------------------------------------
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/