NAME
Kernel::System::ITSMConfigItem::Permission::ClassGroupCheck – check if a user belongs to a group
PUBLIC INTERFACE
new()
create an object
use Kernel::System::ObjectManager;
local $Kernel::OM = Kernel::System::ObjectManager->new();
my $CheckObject = $Kernel::OM->Get('Kernel::System::ITSMConfigItem::Permission::ClassGroupCheck');
Run()
this method does the check if the use belongs to a given group
my $HasAccess = $CheckObject->Run(
UserID => 123,
Type => 'ro',
ClassID => 'ITSM::ConfigItem::Class::Computer',
);
