* [bug #57780] hide creating office button when no doc creating priv.

This commit is contained in:
sunhao
2024-12-09 09:21:27 +08:00
committed by 刘刚
parent a68ebbfc14
commit bc57dfc3ff
+1 -1
View File
@@ -61,7 +61,7 @@ $privs['createStruct'] = hasPriv('api', 'createStruct');
$privs['createRelease']= hasPriv('api', 'createRelease');
$privs['releases'] = hasPriv('api', 'releases');
$privs['struct'] = hasPriv('api', 'struct');
$privs['createOffice'] = true;
$privs['createOffice'] = $privs['create'];
$homeName = false;
if($app->moduleName == 'doc' && isset($lang->doc->spaceList[$type]) && !$noSpace) $homeName = $lang->doc->spaceList[$type];