From 1ed91de3b1f5d79683ba27cd90fb4987aa702fbb Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Tue, 7 Jun 2011 10:34:51 -0300
Subject: [PATCH] Remove non-sense roles.

This roles where commited by mistake long time ago.
---
 .../Email%20Thread.xml                        | 70 -------------------
 bt5/erp5_email_reader/bt/revision             |  2 +-
 2 files changed, 1 insertion(+), 71 deletions(-)

diff --git a/bt5/erp5_email_reader/PortalTypeRolesTemplateItem/Email%20Thread.xml b/bt5/erp5_email_reader/PortalTypeRolesTemplateItem/Email%20Thread.xml
index 2f58244bf3..600ebe860d 100644
--- a/bt5/erp5_email_reader/PortalTypeRolesTemplateItem/Email%20Thread.xml
+++ b/bt5/erp5_email_reader/PortalTypeRolesTemplateItem/Email%20Thread.xml
@@ -1,72 +1,2 @@
 <type_roles>
-  <role id='Assignor'>
-   <property id='title'>Anonymous Event Manager</property>
-   <property id='description'>Events which are not related to a ticket are managed by the default event manager.</property>
-   <property id='condition'>not:object/Event_hasFollowUp</property>
-   <multi_property id='category'>group/nexedi/hq*</multi_property>
-   <multi_property id='category'>function/sales/manager</multi_property>
-  </role>
-  <role id='Assignee'>
-   <property id='title'>Anonymous Event Operator</property>
-   <property id='description'>Events which are not sent to or by a specific internal Person are assigned to the default event operator.</property>
-   <property id='condition'>not:object/Event_isSourceOrDestinationInternalPerson</property>
-   <multi_property id='category'>group/nexedi/hq*</multi_property>
-   <multi_property id='category'>function/sales/manager</multi_property>
-  </role>
-  <role id='Assignee; Assignor'>
-   <property id='title'>ERP5 Express Service Group Member</property>
-   <property id='description'>If the event is related to an organisation which email address is "express-support@myerp5.com", then express service member have the Assignee role.</property>
-   <property id='condition'>object/Event_isExpressSupport</property>
-   <multi_property id='category'>group/nexedi/hq/online</multi_property>
-  </role>
-  <role id='Auditor'>
-   <property id='title'>Global Auditor</property>
-   <property id='description'>The CEO of the company may access all events.</property>
-   <multi_property id='category'>group/nexedi/hq</multi_property>
-   <multi_property id='category'>function/company/executive</multi_property>
-  </role>
-  <role id='Assignee'>
-   <property id='title'>Internal Event Operator</property>
-   <property id='description'>If the source or the destination of an Event is a Person which role is internal, then they (source / destination Person) are considered as Assignee.</property>
-   <property id='condition'>object/Event_isSourceOrDestinationInternalPerson</property>
-   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromContentInternalPerson</property>
-   <multi_property id='category'>group/nexedi*</multi_property>
-   <multi_property id='base_category'>source</multi_property>
-   <multi_property id='base_category'>destination</multi_property>
-  </role>
-  <role id='Associate'>
-   <property id='title'>Project Members</property>
-   <property id='description'>Project members are given the Associate role. This policy may be restricted in the future based on resource type for example.</property>
-   <property id='condition'>object/Event_hasFollowUp</property>
-   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
-   <multi_property id='base_category'>follow_up</multi_property>
-  </role>
-  <role id='Assignor'>
-   <property id='title'>Ticket Handler</property>
-   <property id='description'>If the event is related to a Ticket, the handler a ticket has the Assignor role. In the case of a project, the assignee of a project is the project manager and should naturally be able to access and act on all events.</property>
-   <property id='condition'>object/Event_hasFollowUp</property>
-   <property id='base_category_script'>ERP5Type_acquireSecurityFromCategoryAssignee</property>
-   <multi_property id='base_category'>follow_up</multi_property>
-  </role>
-  <role id='Assignee'>
-   <property id='title'>Ticket Operator</property>
-   <property id='description'>If the event is related to a ticket, the operators have the Assignee role.</property>
-   <property id='condition'>object/Event_hasFollowUp</property>
-   <property id='base_category_script'>ERP5Type_acquireSecurityFromCategoryAssociate</property>
-   <multi_property id='base_category'>follow_up</multi_property>
-  </role>
-  <role id='Auditor'>
-   <property id='title'>Ticket Requester</property>
-   <property id='description'>If the event is related to a Ticket, the requester of the ticket has the Auditor role.</property>
-   <property id='condition'>object/Event_hasFollowUp</property>
-   <property id='base_category_script'>ERP5Type_acquireSecurityFromCategoryAuditor</property>
-   <multi_property id='base_category'>follow_up</multi_property>
-  </role>
-  <role id='Auditor'>
-   <property id='title'>Ticket Supervisor</property>
-   <property id='description'>If the event is related to a Ticket, the supervisor of the ticket has the Auditor role. In the case of a project, the assignor of the project is the corporate project manager and should be allowed to view all events.</property>
-   <property id='condition'>object/Event_hasFollowUp</property>
-   <property id='base_category_script'>ERP5Type_acquireSecurityFromCategoryAssignor</property>
-   <multi_property id='base_category'>follow_up</multi_property>
-  </role>
 </type_roles>
\ No newline at end of file
diff --git a/bt5/erp5_email_reader/bt/revision b/bt5/erp5_email_reader/bt/revision
index 978b4e8e51..a5c750feac 100644
--- a/bt5/erp5_email_reader/bt/revision
+++ b/bt5/erp5_email_reader/bt/revision
@@ -1 +1 @@
-26
\ No newline at end of file
+27
\ No newline at end of file
-- 
2.30.9