fix list of menuitems, fix user in protocol log

This commit is contained in:
Uwe Steinmann 2019-02-04 14:43:57 +01:00
parent 3855603dbf
commit fdb848d5bb

View File

@ -50,6 +50,7 @@ class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common {
/* We still need unsafe-eval, because printDocumentChooserHtml and
* printFolderChooserHtml will include a javascript file with ajax
* which is evaluated by jquery
* worker-src blob: is needed for cytoscape
* X-WebKit-CSP is deprecated, Chrome understands Content-Security-Policy
* since version 25+
* X-Content-Security-Policy is deprecated, Firefox understands
@ -595,7 +596,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
if ($this->params['enableusersview']){
$menuitems['users'] = array('link'=>"../out/out.UsrView.php", 'label'=>'users');
$menuitems['users'] = array('link'=>"../out/out.GroupView.php", 'label'=>'groups');
$menuitems['groups'] = array('link'=>"../out/out.GroupView.php", 'label'=>'groups');
}
/* Check if hook exists because otherwise callHook() will override $menuitems */
@ -2597,7 +2598,7 @@ $(document).ready(function() {
echo "<td>";
echo "<i style=\"font-size: 80%;\">".$rec['date']." - ";
$updateuser = $dms->getUser($rec["userID"]);
if(!is_object($required))
if(!is_object($updateuser))
echo getMLText("unknown_user");
else
echo htmlspecialchars($updateuser->getFullName()." (".$updateuser->getLogin().")");