From b4e531e7eb7f826ba933f0ac81117d3255b9aa62 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 29 Feb 2008 16:50:16 +0000
Subject: [PATCH] Update module's permissions (remove View permission to
 Author).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19628 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../document_analysis_module.xml              | 46 ++++++++++++++++---
 .../ModuleTemplateItem/test_case_module.xml   | 46 ++++++++++++++++---
 .../ModuleTemplateItem/test_report_module.xml | 46 ++++++++++++++++---
 .../ModuleTemplateItem/use_case_module.xml    | 46 ++++++++++++++++---
 bt5/erp5_consulting/bt/revision               |  2 +-
 .../bt/template_catalog_local_role_key_list   |  0
 .../bt/template_catalog_role_key_list         |  0
 .../bt/template_catalog_scriptable_key_list   |  0
 8 files changed, 161 insertions(+), 25 deletions(-)
 create mode 100644 bt5/erp5_consulting/bt/template_catalog_local_role_key_list
 create mode 100644 bt5/erp5_consulting/bt/template_catalog_role_key_list
 create mode 100644 bt5/erp5_consulting/bt/template_catalog_scriptable_key_list

diff --git a/bt5/erp5_consulting/ModuleTemplateItem/document_analysis_module.xml b/bt5/erp5_consulting/ModuleTemplateItem/document_analysis_module.xml
index ce1e45a3b8..76b9aab8c7 100644
--- a/bt5/erp5_consulting/ModuleTemplateItem/document_analysis_module.xml
+++ b/bt5/erp5_consulting/ModuleTemplateItem/document_analysis_module.xml
@@ -208,6 +208,10 @@
    <name>Add Formulator Forms</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add Local File Systems</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add LocalContents</name>
    <role>Manager</role>
@@ -228,6 +232,10 @@
    <name>Add MessageCatalogs</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add MimetypesRegistry Tools</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add Page Templates</name>
    <role>Manager</role>
@@ -240,6 +248,10 @@
    <name>Add Plugin Registrys</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add PortalTransforms Tools</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add Python Scripts</name>
    <role>Manager</role>
@@ -376,6 +388,10 @@
    <name>Change Images and Files</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Change Local File System properties</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Change Lock Information</name>
    <role>Manager</role>
@@ -462,6 +478,10 @@
    <name>Define permissions</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Delete local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Delete objects</name>
    <role>Assignor</role>
@@ -532,8 +552,9 @@
    <name>Manage Groups</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
+  <permission type='tuple'>
    <name>Manage Selenium test cases</name>
+   <role>Manager</role>
   </permission>
   <permission type='tuple'>
    <name>Manage Transient Object Container</name>
@@ -559,13 +580,14 @@
    <name>Manage ZCatalogIndex Entries</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
-   <name>Manage extensions</name>
-  </permission>
   <permission type='tuple'>
    <name>Manage languages</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Manage local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Manage messages</name>
    <role>Manager</role>
@@ -599,6 +621,10 @@
    <name>Open/Close Database Connections</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Overwrite local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Post mail to ZMailIn</name>
    <role>Manager</role>
@@ -655,6 +681,10 @@
    <name>Undo changes</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Upload local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Use Database Methods</name>
    <role>Manager</role>
@@ -663,8 +693,9 @@
    <name>Use Factories</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
+  <permission type='tuple'>
    <name>Use external editor</name>
+   <role>Manager</role>
   </permission>
   <permission type='tuple'>
    <name>Use mailhost services</name>
@@ -676,7 +707,10 @@
    <role>Assignor</role>
    <role>Associate</role>
    <role>Auditor</role>
-   <role>Author</role>
+   <role>Manager</role>
+  </permission>
+  <permission type='tuple'>
+   <name>View Directory Index</name>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
diff --git a/bt5/erp5_consulting/ModuleTemplateItem/test_case_module.xml b/bt5/erp5_consulting/ModuleTemplateItem/test_case_module.xml
index b31cce1ac3..62272db0f4 100644
--- a/bt5/erp5_consulting/ModuleTemplateItem/test_case_module.xml
+++ b/bt5/erp5_consulting/ModuleTemplateItem/test_case_module.xml
@@ -208,6 +208,10 @@
    <name>Add Formulator Forms</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add Local File Systems</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add LocalContents</name>
    <role>Manager</role>
@@ -228,6 +232,10 @@
    <name>Add MessageCatalogs</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add MimetypesRegistry Tools</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add Page Templates</name>
    <role>Manager</role>
@@ -240,6 +248,10 @@
    <name>Add Plugin Registrys</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add PortalTransforms Tools</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add Python Scripts</name>
    <role>Manager</role>
@@ -376,6 +388,10 @@
    <name>Change Images and Files</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Change Local File System properties</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Change Lock Information</name>
    <role>Manager</role>
@@ -462,6 +478,10 @@
    <name>Define permissions</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Delete local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Delete objects</name>
    <role>Assignor</role>
@@ -532,8 +552,9 @@
    <name>Manage Groups</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
+  <permission type='tuple'>
    <name>Manage Selenium test cases</name>
+   <role>Manager</role>
   </permission>
   <permission type='tuple'>
    <name>Manage Transient Object Container</name>
@@ -559,13 +580,14 @@
    <name>Manage ZCatalogIndex Entries</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
-   <name>Manage extensions</name>
-  </permission>
   <permission type='tuple'>
    <name>Manage languages</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Manage local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Manage messages</name>
    <role>Manager</role>
@@ -599,6 +621,10 @@
    <name>Open/Close Database Connections</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Overwrite local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Post mail to ZMailIn</name>
    <role>Manager</role>
@@ -655,6 +681,10 @@
    <name>Undo changes</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Upload local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Use Database Methods</name>
    <role>Manager</role>
@@ -663,8 +693,9 @@
    <name>Use Factories</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
+  <permission type='tuple'>
    <name>Use external editor</name>
+   <role>Manager</role>
   </permission>
   <permission type='tuple'>
    <name>Use mailhost services</name>
@@ -676,7 +707,10 @@
    <role>Assignor</role>
    <role>Associate</role>
    <role>Auditor</role>
-   <role>Author</role>
+   <role>Manager</role>
+  </permission>
+  <permission type='tuple'>
+   <name>View Directory Index</name>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
diff --git a/bt5/erp5_consulting/ModuleTemplateItem/test_report_module.xml b/bt5/erp5_consulting/ModuleTemplateItem/test_report_module.xml
index 6833b4b5e1..63ad0f232e 100644
--- a/bt5/erp5_consulting/ModuleTemplateItem/test_report_module.xml
+++ b/bt5/erp5_consulting/ModuleTemplateItem/test_report_module.xml
@@ -208,6 +208,10 @@
    <name>Add Formulator Forms</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add Local File Systems</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add LocalContents</name>
    <role>Manager</role>
@@ -228,6 +232,10 @@
    <name>Add MessageCatalogs</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add MimetypesRegistry Tools</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add Page Templates</name>
    <role>Manager</role>
@@ -240,6 +248,10 @@
    <name>Add Plugin Registrys</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add PortalTransforms Tools</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add Python Scripts</name>
    <role>Manager</role>
@@ -376,6 +388,10 @@
    <name>Change Images and Files</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Change Local File System properties</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Change Lock Information</name>
    <role>Manager</role>
@@ -462,6 +478,10 @@
    <name>Define permissions</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Delete local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Delete objects</name>
    <role>Assignor</role>
@@ -532,8 +552,9 @@
    <name>Manage Groups</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
+  <permission type='tuple'>
    <name>Manage Selenium test cases</name>
+   <role>Manager</role>
   </permission>
   <permission type='tuple'>
    <name>Manage Transient Object Container</name>
@@ -559,13 +580,14 @@
    <name>Manage ZCatalogIndex Entries</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
-   <name>Manage extensions</name>
-  </permission>
   <permission type='tuple'>
    <name>Manage languages</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Manage local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Manage messages</name>
    <role>Manager</role>
@@ -599,6 +621,10 @@
    <name>Open/Close Database Connections</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Overwrite local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Post mail to ZMailIn</name>
    <role>Manager</role>
@@ -655,6 +681,10 @@
    <name>Undo changes</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Upload local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Use Database Methods</name>
    <role>Manager</role>
@@ -663,8 +693,9 @@
    <name>Use Factories</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
+  <permission type='tuple'>
    <name>Use external editor</name>
+   <role>Manager</role>
   </permission>
   <permission type='tuple'>
    <name>Use mailhost services</name>
@@ -676,7 +707,10 @@
    <role>Assignor</role>
    <role>Associate</role>
    <role>Auditor</role>
-   <role>Author</role>
+   <role>Manager</role>
+  </permission>
+  <permission type='tuple'>
+   <name>View Directory Index</name>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
diff --git a/bt5/erp5_consulting/ModuleTemplateItem/use_case_module.xml b/bt5/erp5_consulting/ModuleTemplateItem/use_case_module.xml
index 376cc3aa4b..f7800cb1fe 100644
--- a/bt5/erp5_consulting/ModuleTemplateItem/use_case_module.xml
+++ b/bt5/erp5_consulting/ModuleTemplateItem/use_case_module.xml
@@ -208,6 +208,10 @@
    <name>Add Formulator Forms</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add Local File Systems</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add LocalContents</name>
    <role>Manager</role>
@@ -228,6 +232,10 @@
    <name>Add MessageCatalogs</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add MimetypesRegistry Tools</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add Page Templates</name>
    <role>Manager</role>
@@ -240,6 +248,10 @@
    <name>Add Plugin Registrys</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Add PortalTransforms Tools</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Add Python Scripts</name>
    <role>Manager</role>
@@ -376,6 +388,10 @@
    <name>Change Images and Files</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Change Local File System properties</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Change Lock Information</name>
    <role>Manager</role>
@@ -462,6 +478,10 @@
    <name>Define permissions</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Delete local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Delete objects</name>
    <role>Assignor</role>
@@ -532,8 +552,9 @@
    <name>Manage Groups</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
+  <permission type='tuple'>
    <name>Manage Selenium test cases</name>
+   <role>Manager</role>
   </permission>
   <permission type='tuple'>
    <name>Manage Transient Object Container</name>
@@ -559,13 +580,14 @@
    <name>Manage ZCatalogIndex Entries</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
-   <name>Manage extensions</name>
-  </permission>
   <permission type='tuple'>
    <name>Manage languages</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Manage local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Manage messages</name>
    <role>Manager</role>
@@ -599,6 +621,10 @@
    <name>Open/Close Database Connections</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Overwrite local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Post mail to ZMailIn</name>
    <role>Manager</role>
@@ -655,6 +681,10 @@
    <name>Undo changes</name>
    <role>Manager</role>
   </permission>
+  <permission type='tuple'>
+   <name>Upload local files</name>
+   <role>Manager</role>
+  </permission>
   <permission type='tuple'>
    <name>Use Database Methods</name>
    <role>Manager</role>
@@ -663,8 +693,9 @@
    <name>Use Factories</name>
    <role>Manager</role>
   </permission>
-  <permission type='list'>
+  <permission type='tuple'>
    <name>Use external editor</name>
+   <role>Manager</role>
   </permission>
   <permission type='tuple'>
    <name>Use mailhost services</name>
@@ -676,7 +707,10 @@
    <role>Assignor</role>
    <role>Associate</role>
    <role>Auditor</role>
-   <role>Author</role>
+   <role>Manager</role>
+  </permission>
+  <permission type='tuple'>
+   <name>View Directory Index</name>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
diff --git a/bt5/erp5_consulting/bt/revision b/bt5/erp5_consulting/bt/revision
index b393560759..cabf43b5dd 100644
--- a/bt5/erp5_consulting/bt/revision
+++ b/bt5/erp5_consulting/bt/revision
@@ -1 +1 @@
-23
\ No newline at end of file
+24
\ No newline at end of file
diff --git a/bt5/erp5_consulting/bt/template_catalog_local_role_key_list b/bt5/erp5_consulting/bt/template_catalog_local_role_key_list
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_consulting/bt/template_catalog_role_key_list b/bt5/erp5_consulting/bt/template_catalog_role_key_list
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_consulting/bt/template_catalog_scriptable_key_list b/bt5/erp5_consulting/bt/template_catalog_scriptable_key_list
new file mode 100644
index 0000000000..e69de29bb2
-- 
2.30.9