* [misc] refactor doc privs in doc app.

This commit is contained in:
sunhao
2024-11-04 08:34:52 +08:00
committed by 刘刚
parent f2b4f2903e
commit 5a1237228d
2 changed files with 11 additions and 8 deletions
+1
View File
@@ -39,6 +39,7 @@ $privs['editLib'] = hasPriv('doc', 'editLib');
$privs['moveLib'] = hasPriv('doc', 'moveLib');
$privs['deleteLib'] = hasPriv('doc', 'deleteLib');
$privs['sortDocLib'] = hasPriv('doc', 'sortDocLib');
$privs['uploadFile'] = hasPriv('doc', 'create');
$privs['exportFiles'] = hasPriv('doc', 'exportFiles');
$privs['createSpace'] = $hasCustomSpace && hasPriv('doc', 'createSpace');
$privs['deleteSpace'] = $hasCustomSpace && hasPriv('doc', 'deleteSpace');