ACL

Moderator: crythias

Locked
erobust
Znuny newbie
Posts: 7
Joined: 03 Feb 2014, 22:42
Znuny Version: 3.2.9
Real Name: Ettore Robustelli
Company: ATO SrL

ACL

Post by erobust »

Hi, i'm trying to define some ACLs in OTRS ITSM 3.2.9.
I put my acl file (ACL.pm) in otrs/Kernel/Config/Files folder but don't work.
Then i put my acl definition in Config.pm file in otrs/Kernel but also in this way don't work.
I don't use root@localhost user.
Anyone can give me an example how to change Config.pm or create a file with my acls?


My Config.pm file is:

Code: Select all

package Kernel::Config;

use strict;
use warnings;
use utf8;

sub Load {
    my $Self = shift;
    $Self->{'DatabaseHost'} = 'localhost';
    $Self->{'Database'} = 'otrs';
    $Self->{'DatabaseUser'} = 'otrs';
    $Self->{'DatabasePw'} = 'xxxx';
    $Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
    $Self->{Home} = '/opt/otrs';
	
	# Created: 2014-02-13 12:00:02 (erobust)
	# Changed: 2014-02-13 12:00:55 (erobust)
	# Comment: TipoServizio_Servizio_PRA
	my ($File, $Self) = @_;

	$Self->{TicketAcl}->{"TipoServizio_Servizio_PRA"} = {
	  'Possible' => {
		'Ticket' => {
		  'DynamicField_dfServizio' => [
			'[regexp]^10.*'
		  ]
		}
	  },
	  'Properties' => {
		'Ticket' => {
		  'DynamicField_DdTipoServizio' => [
			'[regexp]PRA'
		  ]
		}
	  },
	  'StopAfterMatch' => 0
	};
}
use strict;
use warnings;
use vars qw(@ISA);
use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');

1;
Last edited by crythias on 13 Feb 2014, 23:56, edited 1 time in total.
Reason: code tags
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: ACL

Post by crythias »

Not sure you need
my ($File, $Self) = @_;

What "doesn't work"? Does the system crash? Errors?
What do you expect to happen?
What actually happens?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
erobust
Znuny newbie
Posts: 7
Joined: 03 Feb 2014, 22:42
Znuny Version: 3.2.9
Real Name: Ettore Robustelli
Company: ATO SrL

Re: ACL

Post by erobust »

I tried to eliminate the row with "my ($File, $Self) = @_;" and now work correctly.
Before i had no error but nothing happened.
Thank you so much.
Locked