Files
luos/workflow/engine/methods/setup/auditLog.php
Paula Quispe ebfc73ca11 PMCORE-552
2020-10-26 20:45:42 +00:00

20 lines
533 B
PHP

<?php
use ProcessMaker\Log\AuditLog;
global $RBAC;
if ($RBAC->userCanAccess("PM_SETUP") != 1) {
G::SendTemporalMessage("ID_USER_HAVENT_RIGHTS_PAGE", "error", "labels");
exit(0);
}
$auditLog = new AuditLog();
$auditLog->setUserLogged($_SESSION["USER_LOGGED"]);
$oHeadPublisher = headPublisher::getSingleton();
$oHeadPublisher->addExtJsScript("setup/auditLog", true);
$oHeadPublisher->assign("CONFIG", $auditLog->getConfig());
$oHeadPublisher->assign("ACTION", $auditLog->getActions());
G::RenderPage("publish", "extJs");