Kernel::GenericInterface::Operation::Common - Base class for all Operations
performs user or customer user authorization
my ( $UserID, $UserType ) = $CommonObject->Auth( Data => { SessionID => 'AValidSessionIDValue' # the ID of the user session UserLogin => 'Agent', # if no SessionID is given UserLogin or # CustomerUserLogin is required CustomerUserLogin => 'Customer', Password => 'some password', # user password }, ); returns ( 1, # the UserID from login or session data 'Agent', # || 'Customer', the UserType. );
helper function to return an error message.
my $Return = $CommonObject->ReturnError( ErrorCode => Ticket.AccessDenied, ErrorMessage => 'You don't have rights to access this ticket', );
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.