From 48dd1a195bc4a3d5fe69af0d96a153c5bf57784d Mon Sep 17 00:00:00 2001 From: wangyuting Date: Mon, 23 Jun 2025 10:53:10 +0800 Subject: [PATCH] * [bug#63549,done,0.1h,0h] Fix edit doc lib menu. --- module/doc/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/doc/control.php b/module/doc/control.php index 0aac7ceb1e..01b55bc286 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -431,6 +431,7 @@ class doc extends control { if(!common::hasPriv('doc', 'editSpace') && !common::hasPriv('doc', 'editLib')) return; $lib = $this->doc->getLibByID($libID); + $this->doc->setMenuByType($lib->type, (int)zget($lib, $lib->type, 0), (int)$libID); if(!empty($_POST)) { $this->lang->doc->name = $this->lang->nameAB; @@ -475,6 +476,7 @@ class doc extends control } $this->docZen->setAclForEditLib($lib); + $this->docZen->setAclForCreateLib($lib->type); $this->view->lib = $lib; $this->view->groups = $this->loadModel('group')->getPairs();