Kernel::System::ITSMConfigItem::Permission

NAME

Kernel::System::ITSMConfigItem::Permission – module for ITSMConfigItem.pm with Permission functions

DESCRIPTION

All Permission functions.

PUBLIC INTERFACE

Permission()

returns whether the user has permissions or not

    my $Access = $ConfigItemObject->Permission(
        Type       => 'ro',
        Scope      => 'Class', # Class || Item
        ClassID    => 123,     # if Scope is 'Class'
        ItemID     => 123,     # if Scope is 'Item'
        UserID     => 123,
        SkipChecks => [...]  # optional, Checks to skip
    );

or without logging, for example for to check if a link/action should be shown

    my $Access = $ConfigItemObject->Permission(
        Type       => 'ro',
        Scope      => 'Class', # Class || Item
        ClassID    => 123,     # if Scope is 'Class'
        ItemID     => 123,     # if Scope is 'Item'
        LogNo      => 1,
        UserID     => 123,
        SkipChecks => [...]  # optional, Checks to skip
    );
Scroll to Top