diff --git a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Type_getSecurityCategoryMapping.xml b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Type_getSecurityCategoryMapping.xml index d0047388ccb69df2e8fc140ad0dfde2c409555c6..3769356fcfc36f0915cbd64a6523b5f66437e482 100644 --- a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Type_getSecurityCategoryMapping.xml +++ b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Type_getSecurityCategoryMapping.xml @@ -56,17 +56,23 @@ <value> <string>"""\n Understand this and make it suit your needs\n """\n -\n return (\n # This one combines function, type of procedure and destination to generate a security group\n -(\'ERP5Type_getSecurityCategoryFromAssignmentStrict\', [\'function\', \'publication_section\', \'destination\'] ),\n + (\'ERP5Type_getSecurityCategoryFromAssignmentStrict\', [\'function\', \'publication_section\', \'destination\'] ),\n # This one is the usual group and function security\n -(\'ERP5Type_getSecurityCategoryFromAssignmentStrict\', [\'function\', \'group\',] ),\n + (\'ERP5Type_getSecurityCategoryFromAssignmentStrict\', [\'function\', \'group\',] ),\n + (\'ERP5Type_getSecurityCategoryFromAssignmentParent\', [\'group\', \'function\', ]),\n # This one is the usual group, function and site security, needed if access rights depend on site\n -(\'ERP5Type_getSecurityCategoryFromAssignmentStrict\', [\'function\', \'group\', \'site\'] ),\n + (\'ERP5Type_getSecurityCategoryFromAssignmentStrict\', [\'function\', \'group\', \'site\'] ),\n # This one is the usual group security\n -(\'ERP5Type_getSecurityCategoryFromAssignmentStrict\', [\'group\'] ),\n -(\'ERP5Type_getSecurityCategoryRoot\', [\'group\']),\n + (\'ERP5Type_getSecurityCategoryFromAssignmentStrict\', [\'group\'] ),\n + (\'ERP5Type_getSecurityCategoryFromAssignmentParent\', [\'group\'] ),\n + #(\'ERP5Type_getSecurityCategoryRoot\', [\'group\']),\n +# This one is the usual function security\n + (\'ERP5Type_getSecurityCategoryFromAssignment\', [\'function\'] ),\n +# This one is the usual role security\n + (\'ERP5Type_getSecurityCategoryFromEntity\', [\'role\'] ),\n +\n )\n </string> </value> </item> diff --git a/bt5/erp5_egov/bt/change_log b/bt5/erp5_egov/bt/change_log index 3d10f801e60b9fd1ee9d9ad9f945653b77a227f1..5fce1202e334263d0433d910fc4a9878e662c56e 100644 --- a/bt5/erp5_egov/bt/change_log +++ b/bt5/erp5_egov/bt/change_log @@ -1,3 +1,6 @@ +2010-06-16 mayoro +* modify script ERP5Type_getSecurityCategoryMapping to to generate right categories for security + 2010-06-16 mayoro * use proxifield for listbox in Folder_viewEgovContentList diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision index b18fcc5ba20b46f0d2e054e2f0fe5290e5f25b14..06e8971dc662a94702e1d094b4c2ba640351f945 100644 --- a/bt5/erp5_egov/bt/revision +++ b/bt5/erp5_egov/bt/revision @@ -1 +1 @@ -535 \ No newline at end of file +540 \ No newline at end of file