From eb46f71dbf46b74a95475c63b8f06f369f08a769 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 27 Mar 2003 15:50:04 +0000 Subject: [PATCH] only restrict document type editing for non sysadmins --- presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/editDocTypeUI.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/editDocTypeUI.inc b/presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/editDocTypeUI.inc index af234e2..6615b8d 100644 --- a/presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/editDocTypeUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/editDocTypeUI.inc @@ -186,8 +186,11 @@ function getDocTypeDisplay($oDocType) { global $default; if (!isset($oDocType)) { $oPatternListBox = & new PatternListBox($default->owl_document_types_table, "name", "id", "fDocTypeID"); - $oPatternListBox->setFromClause("LEFT OUTER JOIN $default->owl_documents_table D on ST.id=D.document_type_id"); - $oPatternListBox->setWhereClause("ISNULL(D.id)"); + // only restrict doc type editing for non sys admins + if (!Permission::userIsSystemAdministrator()) { + $oPatternListBox->setFromClause("LEFT OUTER JOIN $default->owl_documents_table D on ST.id=D.document_type_id"); + $oPatternListBox->setWhereClause("ISNULL(D.id)"); + } $oPatternListBox->setPostBackOnChange(true); return $oPatternListBox->render(); } else { -- libgit2 0.21.4