Commit fb616c20 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

FIX add ref accesRule

parent 60ca6c60
......@@ -140,9 +140,22 @@ class Content
$archive->actions = array();
}
//access code selector
$accessRuleController = \laabs::newController('recordsManagement/accessRule');
$accessRules = $accessRuleController->index();
foreach ($accessRules as $accessRule) {
$accessRule->json = json_encode($accessRule);
if ($accessRule->duration != null) {
$accessRule->accessRuleDurationUnit = substr($accessRule->duration, -1);
$accessRule->accessRuleDuration = substr($accessRule->duration, 1, -1);
}
}
$this->readPrivilegesOnArchives();
$this->view->setSource('content', $archives);
$this->view->setSource("accessRules", $accessRules);
$this->view->merge();
$dataTable = $this->view->getElementsByClass("dataTable")->item(0)->plugin['dataTable'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment