diff --git a/module/doc/lang/de.php b/module/doc/lang/de.php
index 8aa1863fd7..4ef5f05b0f 100644
--- a/module/doc/lang/de.php
+++ b/module/doc/lang/de.php
@@ -409,3 +409,4 @@ $lang->doc->showDocList[0] = 'No';
$lang->doc->whitelistDeny['product'] = "Whitelist user %s currently has no product access permission, therefore cannot access the document. To access, please maintain product access control permissions.";
$lang->doc->whitelistDeny['project'] = "Whitelist user %s currently has no project access permission, therefore cannot access the document. To access, please maintain project access control permissions.";
$lang->doc->whitelistDeny['execution'] = "Whitelist user %s currently has no execution access permission, therefore cannot access the document. To access, please maintain execution access control permissions.";
+$lang->doc->whitelistDeny['doc'] = "Whitelist user %s currently has no library access permission, therefore cannot access the document. To access, please maintain library access control permissions.";
diff --git a/module/doc/lang/en.php b/module/doc/lang/en.php
index 53ab79b365..c364906156 100644
--- a/module/doc/lang/en.php
+++ b/module/doc/lang/en.php
@@ -409,3 +409,4 @@ $lang->doc->showDocList[0] = 'No';
$lang->doc->whitelistDeny['product'] = "Whitelist user %s currently has no product access permission, therefore cannot access the document. To access, please maintain product access control permissions.";
$lang->doc->whitelistDeny['project'] = "Whitelist user %s currently has no project access permission, therefore cannot access the document. To access, please maintain project access control permissions.";
$lang->doc->whitelistDeny['execution'] = "Whitelist user %s currently has no execution access permission, therefore cannot access the document. To access, please maintain execution access control permissions.";
+$lang->doc->whitelistDeny['doc'] = "Whitelist user %s currently has no library access permission, therefore cannot access the document. To access, please maintain library access control permissions.";
diff --git a/module/doc/lang/fr.php b/module/doc/lang/fr.php
index aa5a566ef4..66c715348c 100644
--- a/module/doc/lang/fr.php
+++ b/module/doc/lang/fr.php
@@ -409,3 +409,4 @@ $lang->doc->showDocList[0] = 'No';
$lang->doc->whitelistDeny['product'] = "Whitelist user %s currently has no product access permission, therefore cannot access the document. To access, please maintain product access control permissions.";
$lang->doc->whitelistDeny['project'] = "Whitelist user %s currently has no project access permission, therefore cannot access the document. To access, please maintain project access control permissions.";
$lang->doc->whitelistDeny['execution'] = "Whitelist user %s currently has no execution access permission, therefore cannot access the document. To access, please maintain execution access control permissions.";
+$lang->doc->whitelistDeny['doc'] = "Whitelist user %s currently has no library access permission, therefore cannot access the document. To access, please maintain library access control permissions.";
diff --git a/module/doc/lang/zh-cn.php b/module/doc/lang/zh-cn.php
index 2b991d5af9..69f072c7be 100644
--- a/module/doc/lang/zh-cn.php
+++ b/module/doc/lang/zh-cn.php
@@ -409,3 +409,4 @@ $lang->doc->showDocList[0] = '否';
$lang->doc->whitelistDeny['product'] = "白名单用户%s暂无产品访问权限,因此无法访问文档。如需访问,请维护产品访问控制权限。";
$lang->doc->whitelistDeny['project'] = "白名单用户%s暂无项目访问权限,因此无法访问文档。如需访问,请维护项目访问控制权限。";
$lang->doc->whitelistDeny['execution'] = "白名单用户%s暂无执行访问权限,因此无法访问文档。如需访问,请维护执行访问控制权限。";
+$lang->doc->whitelistDeny['doc'] = "白名单用户%s暂无所在库访问权限,因此无法访问文档。如需访问,请维护所在库的访问控制权限。";
diff --git a/module/doc/ui/create.text.html.php b/module/doc/ui/create.text.html.php
index ca75e34de0..c6094ea197 100644
--- a/module/doc/ui/create.text.html.php
+++ b/module/doc/ui/create.text.html.php
@@ -24,6 +24,8 @@ $basicInfoModal = modal
on::change('[name=space],[name=product],[name=execution]')->call('loadObjectModules', jsRaw('event')),
on::change('[name=lib]')->call('loadLibModules', jsRaw('event')),
on::change('[name=project]')->call('loadExecutions', jsRaw('event')),
+ on::change('[name=lib]', 'checkLibPriv'),
+ on::change('[name^=users]', 'checkLibPriv'),
formGroup
(
setClass('flex items-center'),
@@ -108,9 +110,9 @@ $basicInfoModal = modal
),
formGroup
(
+ setID('whiteListBox'),
setClass('hidden'),
set::label($lang->doc->whiteList),
- set::id('whitelistBox'),
div
(
setClass('w-full check-list'),
diff --git a/module/doc/ui/edit.office.html.php b/module/doc/ui/edit.office.html.php
index 79c0b64e3d..c9852ab850 100644
--- a/module/doc/ui/edit.office.html.php
+++ b/module/doc/ui/edit.office.html.php
@@ -14,6 +14,8 @@ formPanel
modalHeader(),
on::change('[name=product],[name=project],[name=execution],[name=space]', "loadObjectModules"),
on::change('[name=lib]', "loadLibModules"),
+ on::change('[name=lib]', 'checkLibPriv'),
+ on::change('[name^=users]', 'checkLibPriv'),
(strpos('product|project|execution', $type) !== false) ? formGroup
(
set::width('1/2'),
@@ -81,7 +83,7 @@ formPanel
(
$doc->acl == 'open' ? setClass('hidden') : null,
set::label($lang->doc->whiteList),
- set::id('whitelistBox'),
+ set::id('whiteListBox'),
div
(
setClass('w-full check-list'),
diff --git a/module/doc/ui/edit.text.html.php b/module/doc/ui/edit.text.html.php
index fe92808a10..aaabfdb316 100644
--- a/module/doc/ui/edit.text.html.php
+++ b/module/doc/ui/edit.text.html.php
@@ -25,6 +25,9 @@ $basicInfoModal = modal
set::title($lang->doc->release . $lang->doc->common),
on::change('[name="space"],[name="product"],[name="project"],[name="execution"]')->call('loadObjectModules', jsRaw('event')),
on::change('[name="lib"]')->call('loadLibModules', jsRaw('event')),
+ on::change('[name=lib]', 'checkLibPriv'),
+ on::change('[name^=users]', 'checkLibPriv'),
+
$type == 'execution' ? formHidden('project', $doc->project) : null,
(strpos('product|project|execution', $type) !== false) ? formGroup
(
@@ -81,7 +84,7 @@ $basicInfoModal = modal
(
$doc->acl == 'open' ? setClass('hidden') : null,
set::label($lang->doc->whiteList),
- set::id('whitelistBox'),
+ set::id('whiteListBox'),
div
(
setClass('w-full check-list'),