Method kDBEventHandler::CheckPermission
is called to check if a user has a rights to run an event supplied from Front-End. Right now to ensure correct behavior while performing custom permission checks a developer is forced to use this construct each time:
$perm_helper = $this->Application->recallObject('PermissionsHelper'); /* @var $perm_helper kPermissionsHelper */ return $perm_helper->finalizePermissionCheck($event, false);
I think instead we can simply check if kDBEventHandler::CheckPermission method returned false and call this construct automatically from kRequestManager::runEvent
method.